Skip to content

Instantly share code, notes, and snippets.

View ilovetogetspamed's full-sized avatar

cfo64nc ilovetogetspamed

  • Rutherfordton, NC
View GitHub Profile
@ilovetogetspamed
ilovetogetspamed / App.js
Created December 6, 2022 21:43
Minimum code for React App.js to start without errors.
// found at https://www.digitalocean.com/community/tutorials/how-to-manage-state-on-react-class-components
import './App.css';
function App() {
return (
<></>
);
}

This informatation came from:

HOWTO: reflash bootloader to Mega2560 w/JTAGice mkII and Atmel Studio (https://www.avrfreaks.net/forum/howto-reflash-bootloader-mega2560-wjtagice-mkii-and-atmel-studio)

OK, techically..., you can use any programmer capable of programming via the ISCP port (6-pin block) near the center of the board. I used an Pololu USB AVR Programmer v2.1 (https://www.pololu.com/product/3172). I put it here so I could find it again. And perhaps if you got here you found what you were looking for.

Symptoms:

@ilovetogetspamed
ilovetogetspamed / Phidgets
Created February 25, 2021 15:29
Phidget_1023_0_Python_Example
from Phidget22.PhidgetException import *
from Phidget22.Phidget import *
from Phidget22.Devices.Log import *
from Phidget22.LogLevel import *
from Phidget22.Devices.RFID import *
from Phidget22.Devices.DigitalOutput import *
import traceback
import time
#Declare any event handlers here. These will be called every time the associated event occurs.
@ilovetogetspamed
ilovetogetspamed / CommandLine.ino
Created September 26, 2019 12:19
Simple Command Line parser for Arduino
/*****************************************************************************
How to Use CommandLine:
Create a sketch. Look below for a sample setup and main loop code and copy and paste it in into the new sketch.
Create a new tab. (Use the drop down menu (little triangle) on the far right of the Arduino Editor.
Name the tab CommandLine.h
Paste this file into it.
Test:
@ilovetogetspamed
ilovetogetspamed / scheduler.c
Created August 23, 2019 15:01
AVR Round Robbin Scheduler
/**
AVR Round Robbin Scheduler
Hardware: ATMega8 running at 8MHz
*/
#include<avr/interrupt.h>
#include<inttypes.h>
#define MAX_TASKS (10)
@ilovetogetspamed
ilovetogetspamed / index.html
Created April 16, 2019 21:17
$(...).pickadate is not a function
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Pick-A-Date Test</title>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
@ilovetogetspamed
ilovetogetspamed / example.json
Last active April 10, 2019 20:44
Topic: Selectable table not selecting rows
{
"columns": [
{
"title": "Priority"
},
{
"title": "Location"
},
{
"title": "Work Requested"
@ilovetogetspamed
ilovetogetspamed / fc_mm_test.py
Created October 19, 2018 13:58
Flask Classful with Marshmallow Testing
import datetime
from flask import Flask, jsonify, request
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.exc import IntegrityError
from marshmallow import Schema, fields, ValidationError, pre_load
from flask_classful import FlaskView
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/quotes.db'
@ilovetogetspamed
ilovetogetspamed / object_properties.py
Created September 7, 2018 13:22
How to work with DataView objects from objects higher up in the widget chain.
from kivy.base import Builder
from kivy.uix.screenmanager import Screen
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.logger import Logger
from kivy.uix.accordion import Accordion, AccordionItem
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
@ilovetogetspamed
ilovetogetspamed / mp_led_class.py
Last active July 27, 2018 18:42
Class for controlling LEDs on MicroPython PyBoard
import pyb, micropython
micropython.alloc_emergency_exception_buf(100)
from pyb import Pin
class LED_Control(object):
def __init__(self, timer, ledPin):
self.led = pyb.Pin(ledPin, pyb.Pin.OUT_PP)
self.led.value(True)
self.timer = timer
self.timer.callback(self.cb)