mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
avr: set ADLAR bit in ADC to get a value scaled to 16-bit
This commit is contained in:
@@ -19,7 +19,7 @@ func main() {
|
||||
|
||||
for {
|
||||
val := sensor.Get()
|
||||
if val < 512 {
|
||||
if val < 0x8000 {
|
||||
led.Low()
|
||||
} else {
|
||||
led.High()
|
||||
|
||||
Reference in New Issue
Block a user