This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:iot-open:practical:hardware:rtu:robotnest:oled [2025/07/30 12:18] – created kivilands6 | en:iot-open:practical:hardware:rtu:robotnest:oled [2025/07/30 12:33] (current) – kivilands6 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Example of NRF52 with OLED ===== | ||
| + | Reference: https:// | ||
| + | < | ||
| + | #include < | ||
| + | #include < | ||
| + | #define LED_PIN 12 | ||
| + | #define LED_COUNT 8 | ||
| + | |||
| + | Adafruit_NeoPixel strip(LED_COUNT, | ||
| + | |||
| + | void setup() { | ||
| + | Serial.begin(115200); | ||
| + | |||
| + | strip.begin(); | ||
| + | strip.show(); | ||
| + | } | ||
| + | void loop() { | ||
| + | strip.clear(); | ||
| + | strip.setPixelColor(1, | ||
| + | strip.show(); | ||
| + | delay(1000); | ||
| + | strip.clear(); | ||
| + | strip.setPixelColor(6, | ||
| + | strip.show(); | ||
| + | delay(1000); | ||
| + | } | ||
| + | </ | ||