GHI electronics coding fix. Variable is out of scope
Im trying to write a basic robot function that moves servo when buttons are pressed. I have the thing debugging to the log that it turns on and off using button presses and a bool. Now i cant get the servo variable to get into scope. Towards the botttom of the script where the servo is writing to the device is where im having trouble. It wont do device.write. Device isnt in scope. Ive tried adding static to the variable.
How to determine the voltage on the PGM220 analog pin
I am doing a project on smoke sensor MQ – 02, with the motherboard being PGM220P (not Arduino). I need to get the voltage number (from 1 to 5V) so I can change it to PPM and print it on the console.
Know how many V the analog pin on the PGM220 returns (I’m using C)
I am doing a project on smoke sensor MQ – 02, with the motherboard being PGM220P (not Arduino). I need to get the voltage number (from 1 to 5V) so I can change it to PPM and print it on the console.