This repository was archived by the owner on Aug 27, 2021. It is now read-only.
forked from aanon4/BlueBasic
-
Notifications
You must be signed in to change notification settings - Fork 2
Pin names and uses
JBtje edited this page Jun 4, 2015
·
8 revisions
The following table describes how the pin names in BASIC are mapped to those of the CC245X device:
| BASIC | SPI0 | SPI1 | SPI2 | SPI3 | SERIAL | CC254X | ADC | Power |
|---|---|---|---|---|---|---|---|---|
| P0(0) | P0_0 | ADC0 | ||||||
| P0(1) | P0_1 | ADC1 | ||||||
| P0(2) | MISO | RX | P0_2 | ADC2 | ||||
| P0(3) | MOSI | CLK | TX | P0_3 | ADC3 | |||
| P0(4) | MOSI | CTS | P0_4 | ADC4 | ||||
| P0(5) | CLK | MISO | RTS | P0_5 | ADC5 | |||
| P0(6) | P0_6 | ADC6 | ||||||
| P0(7) | P0_7 | ADC7 | ||||||
| P1(0) | P1_0 | 20 mA | ||||||
| P1(1) | P1_1 | 20 mA | ||||||
| P1(2) | P1_2 | |||||||
| P1(3) | CLK | P1_3 | ||||||
| P1(4) | MISO | P1_4 | ||||||
| P1(5) | MOSI | CLK | P1_5 | |||||
| P1(6) | MOSI | P1_6 | ||||||
| P1(7) | MISO | P1_7 | ||||||
| P2(0) | P2_0 | |||||||
| P2(1) | P2_1 | |||||||
| P2(2) | P2_2 | |||||||
| P2(3) | P2_3 | |||||||
| P2(4) | P2_4 |
FOR
IF
GOSUB
DIM
LIST
MEM -
NEW
RUN
END
GOTO
REM
PRINT
REBOOT
RETURN
AUTORUN
CONFIG -
ABS
LEN !
RND
+
-
*
/
%
&
|
^
>
>=
<
<=
=
==
!=
<<
>>
//
TIMER
MILLIS -
DELAY
PINMODE
RISING -
FALLING -
INTERRUPT -
ATTACH -
DETACH -
SERIAL
SPI
ANALOG
I2C
WIRE
TIMEOUT -
WAIT -
PULSE -
BATTERY
GATT
WRITENORSP -
NOTIFY -
INDICATE -
GATT ONREAD -
GATT ONWRITE -
GATT ONCONNECT
GATT ONDISCOVER -
ADVERT
SCAN
ACTIVE -
DUPLICATES -
BTPOKE
BTPEEK