Simple proof of concept for Blockly to generate Python gpio code and javascript to simulate gpios on browser.
Mode: Simulation Execution
| BCM | Altern | Header | Altern | BCM | |
|---|---|---|---|---|---|
| - | 3.3v | 1 | 2 | 5v | - |
| 2 | SDA | 3 | 4 | 5v | - |
| 3 | SCL | 5 | 6 | 0v | - |
| 4 | GPCLK0 | 7 | 8 | TxD | 14 |
| - | 0v | 9 | 10 | RxD | 15 |
| 17 | - | 11 | 12 | PWM0 | 18 |
| 27 | - | 13 | 14 | 0v | - |
| 22 | - | 15 | 16 | - | 23 |
| - | 3.3v | 17 | 18 | - | 24 |
| 10 | MOSI | 19 | 20 | 0v | - |
| 9 | MISO | 21 | 22 | - | 25 |
| 11 | SCLK | 23 | 24 | CE0 | 8 |
| - | 0v | 25 | 26 | CE1 | 7 |
| BCM | Altern | Header | Altern | BCM | |
Simulated print output.
Python code goes here.
Python real console output goes here.