Fairly sure i’m doing something stupid here, but i’m a beginner so pls forgive etc.
I’ve recently bought a pi zero, explorer pHat and explorer hat parts kit. I tried to get a motor running, which didn’t work, so I decided to follow one of your tutorials to check if it was my code or something else which was wrong.
I decided to try the minecraft thermometer (https://learn.pimoroni.com/tutorial/explorer-hat/making-a-minecraft-thermometer).
When I open idle and try to import explorer hat and read from analog one i get this:
>>> import explorerhat >>> explorerhat.analog.one.read() Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> explorerhat.analog.one.read() NameError: name 'explorerhat' is not defined >>>
I have installed the python library using
curl -sS https://get.pimoroni.com/explorerhat | bash
and I have enabled i2c in raspi-config
Do you have any ideas what I could be doing wrong/not doing?