mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2026-04-26 00:05:55 +03:00
[GH-ISSUE #1501] RGB LED 2.6.1 #811
Labels
No labels
best of
bug
development
discussion
documentation
duplicate
feature request
help wanted
help wanted
improvement
pinned
pull-request
question
stale
translation
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/esp8266_deauther#811
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @captclearleft on GitHub (Dec 13, 2021).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1501
Thanks so much for this project -Its Awesome.
This issue is associated with esp8266_deauther_2.6.1_DISPLAY_EXAMPLE_I2C.bin
And with The current Arduino Code using NodeMCU, IIC Display Example.
With this NodeMCU board NodeMCU from parts list
I have also tried the Adafruit Feather esp8266 Huzza, and the Lolin NodeMCU v2 ch340
The RGB LED feature has got an issue.
I have tried several boards with the 2.6.1 version (ch340, and the CP2102) .
Both have same issue. If this "#define LED_DIGITAL" is commented out - All board fail in a constant reset.
/////DEBUD CODE BELOW //////
ets Jan 8 2013,rst cause:4, boot mode:(3,4)
wdt reset
load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
/////DEBUD CODE ABOVE //////
If it is uncommented the board works with the display and the buttons and the features,
but the RGB LED does not. RGB (neopixel) (adafruit or chinese) LED is random color of yellow to white or Blue or not on at all... (never changes, just stay one constant color. )
I have tried changing the pin for the LED to 10, 0, 2 while disabling the LED in the code .
Heres the crazy.
If you input:
LED 255 0 0 The Board Led comes on
LED 0 0 255 The Esp8266 LED comes on
LED 0 0 0 turns all leds off.
The RGB LED never changes colors or anything...
I am trying to follow the code to see why its not working. My guess right now is a there was a change to the Adafruit or other RGB LED library. Im looking.
@captclearleft commented on GitHub (Dec 13, 2021):
Quick Update. Got the RGB working with some code changes.
I deleted almost all the #if statements in the A_config.h. The settings below seem to allow both the screen and the NeoPixel RGB led to work, and no resets.
NOTE: The last statement here where "USE_LED true" . That was in a !if statement. I removed all that and it needs to be true for the RGB Neopixel to work.
The LED on 16 and the LED on 2 have to be commented out.
And on the esp8266 NodeMCU as in the link in the first thread - pin 9 (sd2) does not work. pin 10 (sd3) and pin 4 (d2) work.
I am still looking in the code to see why the board leds have to be off for this to work, but maybe that is intended.
NOTE: these are just the setting for the display and LED. I did not include the entire A_cofig.h contents.
#define DEFAULT_ESP8266
#define NODEMCU
// ===== DISPLAY ===== //
#define SSD1306_I2C
#define I2C_ADDR 0x3C
#define I2C_SDA 5
#define I2C_SCL 4
// #define FLIP_DIPLAY true
// ===== BUTTONS ===== //
#define BUTTON_UP 14
#define BUTTON_DOWN 12
#define BUTTON_A 13
// ===== LED ===== //
#define LED_NEOPIXEL_GRB
// #define LED_NEOPIXEL_RGB
#define LED_NUM 1
#define LED_NEOPIXEL_PIN 10 // 9 does not work with this board, 10 and 4 do
#define LED_MODE_BRIGHTNESS 10
// ===== LED ===== //
//#define LED_DIGITAL
//#define LED_PIN_R 16 // NodeMCU on-board LED
//#define LED_PIN_B 2 // ESP-12 LED
//removed all #if #elseif statement block around below statement.//
#define USE_LED true
NOTE: uploading code with Arduino IDE as per the guide. I am using board NodeMCU with tools config setetting set to NodeMCU.
@captclearleft commented on GitHub (Dec 13, 2021):
Update.
The Lolin NodeMCU v3 with the ch340 usb chip has a couple different quarks.
GPIO 9 and 10 do not work for the Neopixel RGB Led. For me - I had to use GPIO 4 (D2).
The previous threads code is what I use. The Esp8266 led stays illuminated, and is always on.
But, the Display, buttons and Neopixel works fine.