aanon4 / BlueBasic

BASIC interpreter for CC2540 and CC2541 Bluetooth LE chips
https://gitlab.com/timwilkinson/BlueBasic
97 stars 55 forks source link

How to use ADC? #23

Closed mikewen closed 8 years ago

mikewen commented 8 years ago

Thanks for creating BlueBasic.

How to use ADC? I looked every page in the Wiki and could not find it.

Thanks again!

mikewen commented 8 years ago

I figured it out myself: ANALOG REFERENCE, Internal ANALOG RESOLUTION, 12 PINMODE P0(0) INPUT ADC

PRINT P0(0)