-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* xiao-ble: high charge current * build: store artifacts
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//go:build nano_33_ble | ||
|
||
package main | ||
|
||
func initExtras() { | ||
// nop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//go:build xiao_ble | ||
|
||
// The battery charging current is selectable as 50mA or 100mA, | ||
// where you can set Pin13 as high or low to change it to 50mA or 100mA. | ||
// | ||
// The low current charging current is at the input model set up as HIGH LEVEL | ||
// and the high current charging current is at the output model set up as LOW LEVEL. | ||
// | ||
// In this project, we ensure the high current charging is enabled by default. | ||
// | ||
// See https://wiki.seeedstudio.com/XIAO_BLE/#battery-charging-current | ||
package main | ||
|
||
import "machine" | ||
|
||
var ( | ||
pinChargeCurrent = machine.P0_13 | ||
) | ||
|
||
func initExtras() { | ||
pinChargeCurrent.Configure(machine.PinConfig{Mode: machine.PinOutput}) | ||
pinChargeCurrent.Low() // enable charging at high current, 100mA | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ func init() { | |
|
||
initLeds() | ||
initPins() | ||
initExtras() | ||
|
||
// Orientation | ||
o = orientation.New() | ||
|