Beta Update (#118)

* Bring back P18 SDA

* Change package name to calliopemini

Co-authored-by: Juri <gitkraken@juriwolf.de>
This commit is contained in:
Amerlander 2020-09-16 08:33:01 +02:00 committed by GitHub
parent 77675c1776
commit b3f09e56ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View File

@ -538,6 +538,7 @@
"pins.C12": "Pin C12", "pins.C12": "Pin C12",
"pins.C16": "Pin C16", "pins.C16": "Pin C16",
"pins.C17": "Pin C17", "pins.C17": "Pin C17",
"pins.C18": "Pin C18",
"pins.C4": "Pin C4", "pins.C4": "Pin C4",
"pins.C5": "Pin C5", "pins.C5": "Pin C5",
"pins.C6": "Pin C6", "pins.C6": "Pin C6",

View File

@ -464,6 +464,7 @@ declare namespace motors {
C12 = 106, // MICROBIT_ID_IO_P6 C12 = 106, // MICROBIT_ID_IO_P6
C16 = 102, // MICROBIT_ID_IO_P2 C16 = 102, // MICROBIT_ID_IO_P2
C17 = 108, // MICROBIT_ID_IO_P8 C17 = 108, // MICROBIT_ID_IO_P8
C18 = 120, // MICROBIT_ID_IO_P20
} }

View File

@ -15,7 +15,8 @@ enum class DigitalPin {
C11 = MICROBIT_ID_IO_P7, // LED matrix C8 C11 = MICROBIT_ID_IO_P7, // LED matrix C8
C12 = MICROBIT_ID_IO_P6, // LED matrix C9 C12 = MICROBIT_ID_IO_P6, // LED matrix C9
C16 = MICROBIT_ID_IO_P2, // RX C16 = MICROBIT_ID_IO_P2, // RX
C17 = MICROBIT_ID_IO_P8 // TX C17 = MICROBIT_ID_IO_P8, // TX
C18 = MICROBIT_ID_IO_P20 // SDA
}; };
enum class AnalogPin { enum class AnalogPin {

View File

@ -213,4 +213,10 @@ namespace pins {
//% fixedInstance whenUsed //% fixedInstance whenUsed
export const C17: AnalogInPin = new MicrobitPin(DigitalPin.C17); export const C17: AnalogInPin = new MicrobitPin(DigitalPin.C17);
/**
* Pin C18
*/
//% fixedInstance whenUsed
export const C18: DigitalInOutPin = new MicrobitPin(DigitalPin.C18);
} }