This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import serial | |
import serial.tools.list_ports | |
import numpy as np | |
import cv2 | |
import os | |
from time import sleep | |
class Main(): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <String.h> | |
#include <VarSpeedServo.h> | |
VarSpeedServo sv1; | |
VarSpeedServo sv2; | |
String PTangle, kari; | |
unsigned int ang, sp = 20; | |
unsigned long count = 18000000; | |
void setup() { | |
Serial.begin(115200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <String.h> | |
#include <Servo.h> | |
Servo sv1; | |
Servo sv2; | |
String PTangle, kari; | |
unsigned int ang; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(13, OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# _*_ coding: utf-8 _*_ | |
import time | |
import RPi.GPIO as G | |
import requests | |
import subprocess | |
print("now starting") | |
line_url = 'https://notify-api.line.me/api/notify' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# _*_ coding: utf-8 _* | |
import subprocess | |
import time, signal, sys | |
import sqlite3 | |
import datetime | |
from bokeh.plotting import figure, output_file, show | |
import contextlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding: utf-8 | |
import pygame | |
from pygame.locals import * | |
import os | |
import math | |
import random | |
import sys | |
SCR_RECT = Rect(0,0,800,600) |