Close

673 Results for "python"

  • Copy Python FIles to drive

  • Copy the files found here to the CIRCUITPY drive:https://github.com/gsteiert/FPGA-helper/tree/master/circuitpyAfter copying the files the drive should look like this:
  • Test the included python programs

  • It is likely that you will need to add or change some information in the included python programs so that they match your specific set up. Such as the mysql tables the information pulled from the sensors are being placed into. You will also need to put...
  • python code (to be continued)

  • import codeautostart features recognises if new card is usedcreates folder with new card-ID (from RFID sticker)folder can be renamed (but furthermore it has to contain the unchanged ID) "my lovely audio book 101-203-1-23"put files in folderadd one config...
  • Getting Barometer Data (Python Script)

  • from machine import Pin,I2Cfrom bmp280 import *import time bus = I2C(0,scl=Pin(1),sda=Pin(0),freq=200000)bmp = BMP280(bus) bmp.use_case(BMP280_CASE_INDOOR) while True:    pressure=bmp.pressure    p_bar=pressure/100000   ...
  • Python Code IRC Twitch Bot!

  • The files for this code is hosted in the files section of this project. Lets just start by importing the Socket, time, random, and math libraries. import cfg import socket import time import random import math They cfg file is one custom made with your...
  • Python Gmail and Twitch Bot

  • To fully link my wix website to twitch, I used a Gmail account because of the Google API. I set up the gmail python  api bot by following this tutorial online: https://developers.google.com/gmail/api/quickstart/python I used Sockets for interacting...
  • The base Twitch Python Chatbot

  • import socket import cfg import re import time sock = socket.socket() sock.connect((cfg.HOST,cfg.PORT)) sock.send("PASS {}\r\n".format(cfg.PASS).encode("utf-8")) sock.send("NICK {}\r\n".format(cfg.NICK).encode("utf-8")) sock.send("JOIN {}\r\n".format(cfg.CHAN).encode("utf-8"))...
  • Get GPS Data (Python Script)

  • from machine import Pin, UART, I2Cfrom ssd1306 import SSD1306_I2C import utime, time i2c=I2C(0,sda=Pin(0), scl=Pin(1), freq=400000)oled = SSD1306_I2C(128, 64, i2c) gpsModule = UART(1, baudrate=9600, tx=Pin(4), rx=Pin(5))print(gpsModule) buff = bytearray(255)...