You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SmallBASIC-PiGPIO is a plugin for SmallBASIC to use the GPIO connector of a Raspberry Pi. The following article will give you a short introduction of the plugin. Detailed information is available on the [project website](https://joe7m.github.io/SmallBasicPIGPIO)
5
+
SmallBASIC-PiGPIO is a plugin for SmallBASIC to use the GPIO connector of a Raspberry Pi. The following article will give you a short introduction to the plugin. Detailed information is available on the [project website](https://joe7m.github.io/SmallBasicPIGPIO)
6
6
7
7
## Blinking LED
8
8
@@ -23,7 +23,7 @@ Connect the resistor to pin 4 and the LED to ground of the Raspberry Pi.
23
23
24
24
To let the LED blink the following SmallBASIC program can be used.
25
25
26
-
```
26
+
```freebasic
27
27
importSmallBasicPIGPIOasgpio
28
28
29
29
' LED is connected to pin GPIO4
@@ -45,7 +45,7 @@ next
45
45
46
46
The plugin supports Pulse Width Modulation (PWM). Using this technique the intensity of the LED can tuned as shown in the next example.
47
47
48
-
```
48
+
```freebasic
49
49
importSmallBasicPIGPIOasgpio
50
50
51
51
' LED is connected to pin GPIO4
@@ -80,7 +80,7 @@ In the following image you see the wiring of a push button. When you press the b
80
80
81
81
To read the state of the button, the following example program can be used.
82
82
83
-
```
83
+
```freebasic
84
84
importSmallBasicPIGPIOasgpio
85
85
86
86
constPIN_GPIO4=4
@@ -104,19 +104,19 @@ until key <> ""
104
104
105
105
## OLED Display
106
106
107
-
In case the Raspberry Pi is used without a big Screen, it would be great to have a small Display to print information or even show nice graphics. The plugin supports SSD1306 compatible OLED displays (quite common and really cheap).
107
+
In case the Raspberry Pi is used without a big screen, it would be great to have a small display to print information or even show nice graphics. The plugin supports SSD1306 compatible OLED displays (quite common and really cheap).
108
108
109
109
### Wiring
110
110
111
-
For running this example, you need a SSD1306 compatible OLED display. OLEDs with 128x64 or 128x32 pixels are supported. SmallBASICPiGPIO is using the I2C-protocol for communication.
111
+
For running this example, you need a SSD1306 compatible OLED display. OLEDs with 128x64 or 128x32 pixels are supported. SmallBASIC-PiGPIO is using the I2C-protocol for communication.
0 commit comments