I have connected a DHT11 sensor to the side connector of the PicoCalc, 3.3v, gnd, and GP2. When I tried to read it with the HUMID command in MMBasic, it reported “Unknown Command.” Has this command (and perhaps others) been removed from the language?
It would help if I could see how you are using the command. This works for me;
Dim FLOAT temp, humidity
Device HUMID GP2, temp, humidity
f_temp = (temp * 1.8) + 32
temp = f_temp
Print "Temperature: "; temp
Print "Humidity: "; humidity
What version of MMBasic are you using? If you’re using the side connectors, the ones labeled GP2, GP3, GP4, GP5, GP21, GP28 aren’t connected to the Pico (or so I’ve been told), they’re STM pins. In 06.00.03, HUMID GP2,t,h returns the temperature in variable t, and the humidity in variable h from a sensor on pin GP2. It works for me.
In the manual I downloaded (Ver 6.00.3), the command appears only as HUMID. Interestingly, in previous versions, the command was BITBANG HUMID. Now it is DEVICE HUMID. Is there a manual that corresponds to PicoCalc Basic?
If you mean the firmware version that was originally posed by clockworkpi then probably no. They took a release candidate for a MMBasic version that was never released and modified it for the PicoCalc.
If you update to the version supported by adcockm then the official 6.00.02 manual should be correct.
The version 5 documentation uses Device, which works, the version 6 uses just HUMID and it does not work. This is just a mistake in the documentation. I think they are working on a revision of the documentation for 6.03, hopefully they have caught this error.