Skip to content

Commit

Permalink
modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
felixthecat8a committed Jan 1, 2025
1 parent 4c9829b commit db0626e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ Thumbs.db
# Prototyping file
LCD_BacklightRGB.ino
notes.md
RGB_LED.ino
ColorWheelSpin.ino


RGB_LED/RGB_LED.ino
ColorWheelSpin/ColorWheelSpin.ino
28 changes: 28 additions & 0 deletions examples/ColorWheelSpin/ColorWheelSpin.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* ColorWheelSpin.ino
*
* This sketch will loop through the colors of a color wheel.
*
* Connections:
* Use an RGB LCD with 18 pins:
* Pin 15: Connect to HIGH for backlight power.
* Pin 16: Red channel (connect to PWM pin ~6).
* Pin 17: Green channel (connect to PWM pin ~9).
* Pin 18: Blue channel (connect to PWM pin ~10).
* LCD Data Pins:
* Register Select: Pin 12
* Enable: Pin 11
* D4: Pin 5
* D5: Pin 4
* D6: Pin 3
* D7: Pin 2
* Read/Write: GND
* Vss: GND
* Vcc: 5V
* Contrast Adjustment:
* Connect a 10kΩ potentiometer to the contrast (V0) pin.
* Middle pin of the potentiometer: Connect to the V0 pin (pin 3) of the LCD.
* One outer pin: Connect to GND.
* Other outer pin: Connect to 5V.
*
*/

0 comments on commit db0626e

Please sign in to comment.