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

Version T22 V1.0: LED Built-in GPIO #32

Open
rcomellas opened this issue Sep 14, 2019 · 2 comments
Open

Version T22 V1.0: LED Built-in GPIO #32

rcomellas opened this issue Sep 14, 2019 · 2 comments

Comments

@rcomellas
Copy link

I have tested the blink sketch from the examples folder in the new version T22 V1.0 but it doesn't work with GPIO14.
Anyone has the right IO?

@SimonRafferty
Copy link

I do not believe the board has a built-in LED other than the charging LED. However, you can control this!

Have a look at the AXP202X Library by Lewis He:
https://platformio.org/lib/show/6657/AXP202X_Library

Add the following to your sketch:
#include <axp20x.h> AXP20X_Class axp;
And in Setup():
`
//Turn everything on
axp.setPowerOutPut(AXP192_LDO2, AXP202_ON);
axp.setPowerOutPut(AXP192_LDO3, AXP202_ON);
axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON);
axp.setPowerOutPut(AXP192_DCDC2, AXP202_ON);
axp.setPowerOutPut(AXP192_DCDC3, AXP202_ON);
axp.setPowerOutPut(AXP192_EXTEN, AXP202_ON);
axp.setDCDC1Voltage(3300); //Set Pin header 3.3V line to 3.3V. Processor is happy down to 1.8V which saves power

//I don't think this board has a built in LED, other than the Charge LED, controlled by this:
// AXP20X_LED_OFF,
// AXP20X_LED_BLINK_1HZ,
// AXP20X_LED_BLINK_4HZ,
// AXP20X_LED_LOW_LEVEL,

axp.setChgLEDMode(AXP20X_LED_OFF);

`

@luckynrslevin
Copy link

Following code wokrs for me:
https://github.com/luckynrslevin/TTGO-T-Beam-Blinking

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

3 participants