mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +00:00
6bb6ea2432
* save * esp32s3: save * adc * worker on esp32s3 * worker after flash arduino * save * fix * simple adc * added adc * esp32s3-adc: rm debug * esp32s3-adc: clear * last refactor * linters * esp32s3-adc: recover example * esp32s3-adc: reuse fuse for esp32c3 * esp32s3-adc: refactor bugs * esp32s3-adc: fix adc2 for esp32c3 * esp32s3-adc: group to adc files * esp32s3-adc: revert changing board * esp32s3-adc: recover example adc * esp32s3-adc: fix edge values adc & added smoketests * esp32s3-adc: rename methods * esp32s3-adc: extends adc tests * esp32s3-adc: drop debug * esp32s3-adc: added ADCX const * esp32s3-adc: change adc tests * esp32s3-adc: added comment for esp32c3 * esp32s3-adc: drop debug empty loops * esp32s3-adc: drop duplicate gpio * esp32s3-adc: change return values to 0..65520
52 lines
619 B
Go
52 lines
619 B
Go
//go:build esp32c312f
|
|
|
|
package machine
|
|
|
|
// Built-in RGB LED
|
|
const (
|
|
LED_RED = IO3
|
|
LED_GREEN = IO4
|
|
LED_BLUE = IO5
|
|
LED = LED_RED
|
|
)
|
|
|
|
const (
|
|
IO0 = GPIO0
|
|
IO1 = GPIO1
|
|
IO2 = GPIO2
|
|
IO3 = GPIO3
|
|
IO4 = GPIO4
|
|
IO5 = GPIO5
|
|
IO6 = GPIO6
|
|
IO7 = GPIO7
|
|
IO8 = GPIO8
|
|
IO9 = GPIO9
|
|
IO10 = GPIO10
|
|
IO18 = GPIO18
|
|
IO19 = GPIO19
|
|
RXD = GPIO20
|
|
TXD = GPIO21
|
|
)
|
|
|
|
// ADC pins
|
|
const (
|
|
ADC1_0 Pin = IO0
|
|
ADC1_1 Pin = IO1
|
|
ADC1_2 Pin = IO2
|
|
ADC1_3 Pin = IO3
|
|
ADC1_4 Pin = IO4
|
|
ADC2_0 Pin = IO5
|
|
)
|
|
|
|
// UART0 pins
|
|
const (
|
|
UART_TX_PIN = TXD
|
|
UART_RX_PIN = RXD
|
|
)
|
|
|
|
// I2C pins
|
|
const (
|
|
SCL_PIN = NoPin
|
|
SDA_PIN = NoPin
|
|
)
|