SHARE
TWEET

Untitled

a guest Apr 24th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define led A1
  2. #include <SoftwareSerial.h>
  3. SoftwareSerial mySerial(4, 1);
  4. void setup() {
  5.   pinMode(led, OUTPUT);
  6.   Serial.begin(38400);
  7. }
  8. void loop() {
  9.  if(mySerial.available()){
  10.   int reiksme=mySerial.read();
  11.     analogWrite(led,reiksme);
  12.  }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top