Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio.Init() Changes LED Pixel Behavior #274

Open
Teku16 opened this issue May 8, 2023 · 2 comments
Open

Radio.Init() Changes LED Pixel Behavior #274

Teku16 opened this issue May 8, 2023 · 2 comments

Comments

@Teku16
Copy link

Teku16 commented May 8, 2023

Hello,

I am using a modified LoRa send code on an AB02S module, and when the following lines are used (required for our code), I lose all ability to control the pixel beyond the color green.

Radio.Init( &RadioEvents );
Radio.SetChannel( RF_FREQUENCY );
Radio.SetTxConfig( MODEM_LORA, TX_OUTPUT_POWER, 0, LORA_BANDWIDTH,
                                  LORA_SPREADING_FACTOR, LORA_CODINGRATE,
                                  LORA_PREAMBLE_LENGTH, LORA_FIX_LENGTH_PAYLOAD_ON,
                                  true, 0, 0, LORA_IQ_INVERSION_ON, 3000 );
Radio.SetSyncWord(0x13);

PlatformIO file:

[env:cubecell_gps]
platform = heltec-cubecell
board = cubecell_gps
framework = arduino
upload_port = COM5
upload_speed = 921600
monitor_port = COM5
monitor_speed = 115200

Libraries in use:

#include "LoRaWan_APP.h"
#include "Arduino.h"
#include "GPS_Air530Z.h"
#include "HT_SSD1306Wire.h"
#include "CubeCell_NeoPixel.h"

I don't think my code is relevant to the issue. I thoroughly tested via removing sections of my code, and the part above is what causes the LED to go only green, regardless of what I do (pixels.clear(), pixels.setPixelColor).

@Teku16
Copy link
Author

Teku16 commented May 8, 2023

I also tried using the built-in turnOnRGB(COLOR_SEND,0); //change rgb color RED and I got a lime color. Violet gets white, yellow gets green, blue gets aqua.. They are all green based. When I remove the Radio references, I have no issues getting full spectrum RGB from either method. I have tried this on multiple AB02S units.

@identeddie
Copy link

Did you find anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants