Commit Graph
12 Commits
Author SHA1 Message Date
Montvydas Klumbys 4b609ef91e Xenon board can tell when it is getting powered through the USB rather than a battery and when a battery is being charged. Added required pins inside variant files and they work as specified:
- When PIN_PWD is HIGH, Xenon is being powered through the USB
- When PIN_CHG is LOW, a battery attached to Xenon is being charged
Note though that prior to using these pins it is neccessary to specify pinMode(PIN_CHG, INPUT) and pinMode(PIN_PWR, INPUT) due to how they're being implemented in hardware. Using these two pins 3 states of power can be deduced:
- hasUsbPower = digitalRead(PIN_PWR);
- isCharging = (hasUsbPower && !digitalRead(PIN_CHG));
- onBatteryPower = !hasUsbPower;

Added the missing LED1 initialisation.

BUTTON_FRESET pin number assignment was fixed.
2020-04-13 19:12:11 +02:00
Nishanth Samala 197c7d1e18 remove pin 22 2020-02-16 22:25:30 -05:00
Jon Swope 9b83c2736a Pin updates 2020-02-07 22:05:21 -05:00
Nishanth Samala 69d117c11b fixed pins 6, 7 and 8 2020-02-07 14:25:53 -05:00
Nishanth Samala e60a28615f updated pin mappings 2020-02-07 10:58:23 -05:00
Nishanth Samala 9b45e276cc move static declaration for switch_antenna to the header 2020-02-05 21:41:01 -05:00
Nishanth Samala a2434cc698 fix a merge conflict 2020-02-05 21:39:41 -05:00
Nishanth Samala 59dcead893 merge with updates from upstream 2020-02-05 15:47:50 -05:00
Nishanth Samala 3e66f7491b added led helper methods. Added boards.txt 2020-02-05 15:42:00 -05:00
hathach 3d49611c00 remove unused USB_MSC_BLOCK_SIZE/USB_MSC_BLOCK_COUNT 2020-02-03 12:06:35 +07:00
Nishanth Samala f92c0b7c14 updates to the xenon variant file 2019-08-20 12:44:18 -04:00
Nishanth Samala 6d5edf0af6 add support for Particle Xenon 2019-08-04 23:00:01 -04:00