Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:iot-open:practical:hardware:rtu:robotnest:oled [2025/07/30 12:18] – created kivilands6en: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://www.waveshare.com/wiki/1.5inch_OLED_Module
 +<code>
 +#include <Arduino.h>
 +#include <Adafruit_NeoPixel.h>
  
 +#define LED_PIN 12
 +#define LED_COUNT 8
 +
 +Adafruit_NeoPixel strip(LED_COUNT, LED_PIN);
 +
 +void setup() {
 +  Serial.begin(115200);
 +
 +  strip.begin();
 +  strip.show();
 +}
 +void loop() {
 +  strip.clear();
 +  strip.setPixelColor(1,0,0,255);
 +  strip.show();
 +  delay(1000);
 +  strip.clear();
 +  strip.setPixelColor(6,0,0,255);
 +  strip.show();
 +  delay(1000);
 +}
 +</code>
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0