This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dglaude/patch-2
Add support for FeatherS2 by Unexpected Maker
- Loading branch information
Showing
3 changed files
with
81 additions
and
1 deletion.
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
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,76 @@ | ||
from . import pin_error | ||
#import board | ||
import microcontroller | ||
|
||
def pin3(): | ||
return microcontroller.pin.GPIO0 | ||
|
||
def pin5(): | ||
return microcontroller.pin.GPIO17 | ||
|
||
def pin6(): | ||
return microcontroller.pin.GPIO18 | ||
|
||
def pin7(): | ||
return microcontroller.pin.GPIO13 | ||
|
||
def pin8(): | ||
return microcontroller.pin.GPIO12 | ||
|
||
def pin9(): | ||
return microcontroller.pin.GPIO6 | ||
|
||
def pin10(): | ||
return microcontroller.pin.GPIO5 | ||
|
||
def pin11(): | ||
return microcontroller.pin.GPIO36 | ||
|
||
def pin12(): | ||
return microcontroller.pin.GPIO35 | ||
|
||
def pin13(): | ||
return microcontroller.pin.GPIO37 | ||
|
||
def pin14(): | ||
return microcontroller.pin.GPIO44 | ||
|
||
def pin15(): | ||
return microcontroller.pin.GPIO43 | ||
|
||
def pin16(): | ||
# This is 3V3 LDO 2 OUTPUT | ||
raise NotImplementedError | ||
|
||
def pin17(): | ||
return microcontroller.pin.GPIO8 | ||
|
||
def pin18(): | ||
return microcontroller.pin.GPIO9 | ||
|
||
def pin19(): | ||
return microcontroller.pin.GPIO33 | ||
|
||
def pin20(): | ||
return microcontroller.pin.GPIO38 | ||
|
||
def pin21(): | ||
return microcontroller.pin.GPIO1 | ||
|
||
def pin22(): | ||
return microcontroller.pin.GPIO3 | ||
|
||
def pin23(): | ||
return microcontroller.pin.GPIO7 | ||
|
||
def pin24(): | ||
return microcontroller.pin.GPIO10 | ||
|
||
def pin25(): | ||
return microcontroller.pin.GPIO11 | ||
|
||
def init(scope): | ||
"""Pull the pin definitions into the main module namespace""" | ||
for key in globals().keys(): | ||
if key.startswith('pin'): | ||
scope[key] = globals()[key] |