Skip to content

Commit f6927a6

Browse files
authored
Update SmallBASICPiGPIO.markdown
1 parent ceb0799 commit f6927a6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

_build/pages/SmallBASICPiGPIO.markdown

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# SmallBASICPiGPIO - Plugin to use the GPIO pins of a Raspberry Pi
1+
# SmallBASIC-PiGPIO - Plugin to use the GPIO pins of a Raspberry Pi
22

33
![Logo](https://joe7m.github.io/SmallBasicPIGPIO/images/logo_smallbasicpigpio.png)
44

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 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)
66

77
## Blinking LED
88

@@ -23,7 +23,7 @@ Connect the resistor to pin 4 and the LED to ground of the Raspberry Pi.
2323

2424
To let the LED blink the following SmallBASIC program can be used.
2525

26-
```
26+
```freebasic
2727
import SmallBasicPIGPIO as gpio
2828

2929
' LED is connected to pin GPIO4
@@ -45,7 +45,7 @@ next
4545

4646
The plugin supports Pulse Width Modulation (PWM). Using this technique the intensity of the LED can tuned as shown in the next example.
4747

48-
```
48+
```freebasic
4949
import SmallBasicPIGPIO as gpio
5050

5151
' 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
8080

8181
To read the state of the button, the following example program can be used.
8282

83-
```
83+
```freebasic
8484
import SmallBasicPIGPIO as gpio
8585

8686
const PIN_GPIO4 = 4
@@ -104,19 +104,19 @@ until key <> ""
104104

105105
## OLED Display
106106

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).
108108

109109
### Wiring
110110

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.
112112

113113
![OLED wiring](https://joe7m.github.io/SmallBasicPIGPIO/images/ssd1306_wiring.png)
114114

115115
### Software
116116

117117
The following example shows how to use basic graphic commands to draw lines or print text.
118118

119-
```
119+
```freebasic
120120
import SmallBasicPIGPIO as gpio
121121

122122
gpio.OLED1_Open()
@@ -143,7 +143,7 @@ print("Done")
143143

144144
# Supported Hardware
145145

146-
The SmallBASIC PiGPIO pluging supports the following hardware. Support for more sensors and displays is planned.
146+
The SmallBASIC-PiGPIO plugin supports the following hardware. Support for more sensors and displays is planned.
147147

148148
- LED
149149
- Push Button

0 commit comments

Comments
 (0)