Arduino
Napsal: 4. 9. 2013, 6:56
Zdravím
potřeboval bych na arduinu ATMEGA328 uvolnit jeden analogový vstup , takže bych potřeboval nahradit jeden potenciometr ,dvěma tlačítky na dig vstupech a ovládat + a -
poradí mi někdo jak nato ?
potřebuji nahradit toto :
const int analogInPin3 = 5; // D Analog input pin that the potentiometer
int sensorValue3 = 0; // value read from the pot
int outputValue3 = 0; // value output to the x
sensorValue3 = analogRead (analogInPin3);
outputValue3 = map(sensorValue3, 0, 1023, 0, 500);
potřeboval bych na arduinu ATMEGA328 uvolnit jeden analogový vstup , takže bych potřeboval nahradit jeden potenciometr ,dvěma tlačítky na dig vstupech a ovládat + a -
poradí mi někdo jak nato ?
potřebuji nahradit toto :
const int analogInPin3 = 5; // D Analog input pin that the potentiometer
int sensorValue3 = 0; // value read from the pot
int outputValue3 = 0; // value output to the x
sensorValue3 = analogRead (analogInPin3);
outputValue3 = map(sensorValue3, 0, 1023, 0, 500);