Skip to content

Commit 470c299

Browse files
author
GitHub Actions
committed
docs: Update I2C documentation and clean up RGB LED files
I2C Documentation Updates (33_i2c.rst): - Enhanced SSD1306 display example code structure - Improved Arduino C++ code formatting and comments - Better pin configuration documentation for PULSAR H2 - Cleaner code organization and readability RGB LED Documentation Updates: - Updated 55_RGB_LED.rst with latest improvements - Removed redundant 55_ws28.rst file to avoid duplication - Maintained consistent naming convention Visual Assets: - Updated pinout.png with latest hardware specifications - Improved visual clarity for pin assignments These updates improve code readability, eliminate file duplication, and enhance the overall documentation quality for ESP32-H2 development.
1 parent b1a1382 commit 470c299

File tree

4 files changed

+9
-143
lines changed

4 files changed

+9
-143
lines changed

software/sphinx/src/source/33_i2c.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,8 @@ Library Support
263263
Serial.begin(9600);
264264
265265
// Initialize I2C - PULSAR H2 pins: A4 (SDA) = GPIO12, A5 (SCL) = GPIO22
266-
Wire.setSDA(12);
267-
Wire.setSCL(22);
268-
Wire.begin();
266+
267+
Wire.begin(12,22);
269268
// Start the OLED display
270269
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3C for 128x64
271270
Serial.println(F("SSD1306 allocation failed"));
@@ -299,7 +298,7 @@ Library Support
299298
300299
// Refresh the display to show the new count
301300
display.display();
302-
301+
303302
// Increment the counter
304303
counter++;
305304

software/sphinx/src/source/55_RGB_LED.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,21 @@ Below is an example that demonstrates how to control addressable RGB LED strips
5252
.. code-block:: c++
5353

5454
#include <Adafruit_NeoPixel.h>
55-
55+
5656
#define RGB_LED_PIN 8
5757
#define NUM_LEDS 1
58-
58+
5959
// Initialize addressable RGB LED strip
6060
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, RGB_LED_PIN, NEO_GRB + NEO_KHZ800);
61-
61+
6262
void setup() {
6363
strip.begin();
64-
// Set color (Red, Green, Blue) - orange color
64+
// Set color (Red, Green, Blue) - orange color
6565
strip.setPixelColor(0, 255, 128, 0);
6666
strip.show();
6767
}
68+
69+
void loop(){}
6870
.. tab:: esp-idf
6971

7072
.. code-block:: c

software/sphinx/src/source/55_ws28.rst

Lines changed: 0 additions & 135 deletions
This file was deleted.
7.48 MB
Loading

0 commit comments

Comments
 (0)