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
54b4769ff4
updated all subsequent pins after 22
2020-02-16 22:28:31 -05:00
Nishanth Samala
197c7d1e18
remove pin 22
2020-02-16 22:25:30 -05:00
Nishanth Samala
be39bb6f46
set NUM_ANALOG_OUTPUTS to 0
2020-02-08 21:24:06 -05:00
Nishanth Samala
d5e10895cf
Merge pull request #1 from jaswope/particle-xenon-support
...
More Particle Xenon support
2020-02-08 10:51:32 -05:00
Nishanth Samala
f911fa621e
remove NRF52 flag
2020-02-08 10:27:49 -05:00
Nishanth Samala
d09c714bad
use constant values for SPI / I2C pins
2020-02-08 10:27:10 -05:00
Nishanth Samala
656dca06c7
fixed up SPI / I2C pin interfaces. Added Serial2 support. Added pin definitions for RTS and CTS for Serial1 and Serial2
2020-02-08 10:08:09 -05:00
Jon Swope
4efe23de51
Declare AREF
2020-02-07 22:40:31 -05:00
Jon Swope
04dfd4defa
Specify correct flash device
2020-02-07 22:39:58 -05:00
Jon Swope
9b83c2736a
Pin updates
2020-02-07 22:05:21 -05:00
Nishanth Samala
7e3aaa4cce
revert to Serial1 instead of Serial
2020-02-07 17:23:42 -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
Lady Ada
bffffaf35e
add QSPI define for external flash
2020-02-01 12:33:35 -05:00
hathach
a00eb4fa70
remove SERIAL_INTERFACES_COUNT macro
...
nrf52832 keep PIN_SERIAL_RX/TX
2020-01-31 22:09:46 +07:00
hathach
306b10dc7f
follow up to #315
...
- Add SERIAL_INTERFACES_COUNT to all variants
- Rename PIN_SERIAL_RX/TX & PIN_SERIAL1_RX/TX
2020-01-31 21:27:54 +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