not detecting library
Posted: Mon May 17, 2021 1:59 am
Hello,
so i'm trying to get a Pico to use a Capacitive moisture sensor.
from the start. main computer is a i7 4770. i have thonny installed on linux mint. when i try and install the machine library i'm getting a error to install. i've tryed many things to get it to install and use it to even using root to run the program. no luck.
that's fine i have a Pi4 with raspbian os installed. boot it up and goto manage librarys. installs no problem.
code i'm trying to run is:
from machine import Pin, ADC
import time
adc = ADC(Pin(27))
while True:
print(adc.read_u16())
time.sleep(1)
click the debug and get an error saying no machine library installed. i'm going to loose my mind here. can anyone tell me why i can't use this library so i can test this sensor????!?!?!?
so i'm trying to get a Pico to use a Capacitive moisture sensor.
from the start. main computer is a i7 4770. i have thonny installed on linux mint. when i try and install the machine library i'm getting a error to install. i've tryed many things to get it to install and use it to even using root to run the program. no luck.
that's fine i have a Pi4 with raspbian os installed. boot it up and goto manage librarys. installs no problem.
code i'm trying to run is:
from machine import Pin, ADC
import time
adc = ADC(Pin(27))
while True:
print(adc.read_u16())
time.sleep(1)
click the debug and get an error saying no machine library installed. i'm going to loose my mind here. can anyone tell me why i can't use this library so i can test this sensor????!?!?!?