This repository was archived by the owner on Dec 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
src/components/WokwiEditor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22title : SSD1306
33---
44
5+ import WokwiEditor from " @site/src/components/WokwiEditor"
6+
57# SSD1306
68
79Driver for SSD1306 OLED screen at I2C address ` 0x3c ` (or ` 0x3d ` ).
@@ -38,3 +40,7 @@ await ssd.init()
3840ssd .image .print (" Hello world!" , 3 , 10 )
3941await ssd .show ()
4042```
43+
44+ ## Examples
45+
46+ <WokwiEditor projectId = " 370250148258841601" >
Original file line number Diff line number Diff line change 11---
22sidebar_position : 2
33description : Learn how to create the classic LED blinking program on Raspberry
4- Pi Pico and ESP32 using DeviceScript.
4+ Pi Pico and ESP32 using DeviceScript.
55keywords :
6- - Raspberry Pi Pico
7- - ESP32
8- - LED blinking
9- - DeviceScript
10- - microcontroller programming
6+ - Raspberry Pi Pico
7+ - ESP32
8+ - LED blinking
9+ - DeviceScript
10+ - microcontroller programming
1111hide_table_of_contents : true
1212---
13+
1314import StaticVideo from " @site/src/components/StaticVideo"
15+ import WokwiEditor from " @site/src/components/WokwiEditor"
1416
1517# Blinky
1618
@@ -56,3 +58,5 @@ setInterval(async () => {
5658 await lightBulb .toggle ()
5759}, 500 )
5860```
61+
62+ <WokwiEditor projectId = " 368689527293414401" />
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ sidebar_position: 3.1
33hide_table_of_contents : true
44---
55
6+ import WokwiEditor from " @site/src/components/WokwiEditor"
7+
68# Button LED
79
810This sample toggles a LED on/off by listening on the ` down ` events emitted by a button.
@@ -26,11 +28,4 @@ button.down.subscribe(async () => {
2628})
2729```
2830
29-
30- <iframe style = { {
31- width:" 100%" ,
32- minHeight: " 28rem" ,
33- borderRadius: " 0.5rem" ,
34- padding: " .5rem" ,
35- border: " solid 1px #666"
36- }} src = " https://wokwi.com/projects/369061499438874625" />
31+ <WokwiEditor projectId = " 369061499438874625" />
Original file line number Diff line number Diff line change 1+ import React from "react"
2+ import styles from "./styles.module.css"
3+
4+ export default function WokwiEditor ( props : { projectId : string } ) {
5+ const { projectId } = props
6+ const url = `https://wokwi.com/projects/${ projectId } `
7+ return < iframe className = { styles . editor } src = { url } />
8+ }
Original file line number Diff line number Diff line change 1+ .editor {
2+ width : 100% ;
3+ min-height : 28rem ;
4+ border-radius : 0.5rem ;
5+ padding : 0.5rem ;
6+ border : solid 1px # 666 ;
7+ }
You can’t perform that action at this time.
0 commit comments