Skip to content

Instantly share code, notes, and snippets.

View altanhaligur's full-sized avatar
🏠
Working from home

Altan Haligur altanhaligur

🏠
Working from home
View GitHub Profile
import serial
import RPi.GPIO as GPIO
import time
ser = serial.Serial("/dev/ttyUSB0", 9600)
ser.baudrate = 9600
while True:
read_ser = ser.readline()
a = int(read_ser)
int xPin = A0;
int xPozisyonu = 0;
void setup() {
Serial.begin(9600);
pinMode(xPin, INPUT);