Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int out = 11;
- int V = 0;
- void setup() {
- pinMode(out, OUTPUT);
- Serial.begin(9600);
- }
- void loop() {
- if( Serial.available() )
- V = (Serial.read()-48) * 25; // ASCII abziehen
- // Spannung einstellen
- analogWrite(out, V);
- }
Add Comment
Please, Sign In to add comment