You need to have avrdude and avr-gcc installed on a Raspberry Pi.
These two sites were very helpful in wiring up the ATmega328P to the GPIO pins on the Raspberry Pi:
| [package] | |
| name = "getacp-example" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| codepage = "0.1.2" | |
| [dependencies.windows-sys] | |
| version = "0.59" |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| SteamVRRunning() | |
| { | |
| Process, Exist, vrserver.exe | |
| If ErrorLevel = 0 | |
| { |
| #include <Arduino.h> | |
| #include <Wire.h> | |
| #include "ota.h" | |
| #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager WiFi Configuration Magic | |
| #define TRACKER_ADDRESS 0x4A | |
| #define AUX_ADDRESS 0x4B | |
| #define TRACKER_INT 16 | |
| #define AUX_INT 13 |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| ; Reset | |
| $^+!y:: | |
| SoundBeep | |
| Sleep 3000 | |
| SoundBeep |
| # Stolen from https://github.com/mnooner256/pyqrcode/blob/master/pyqrcode/tables.py | |
| data_capacity = { | |
| 1: { | |
| "L": { | |
| 0: 152, | |
| 1: 41, | |
| 2: 25, | |
| 4: 17, | |
| 8: 10, | |
| }, |
| # Exclude mac folders and files | |
| - .Trashes/** | |
| - .Spotlight-V100/** | |
| - *.DS_Store* | |
| # Excluding states, as those are done by another command | |
| - savestates/** | |
| - *.state* | |
| + README.txt |
| /* | |
| Project Nintendo Extension Controller Library | |
| @author David Madison | |
| @link github.com/dmadison/NintendoExtensionCtrl | |
| @license LGPLv3 - Copyright (c) 2020 David Madison | |
| This file is part of the Nintendo Extension Controller Library. | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU Lesser General Public License as published by |
You need to have avrdude and avr-gcc installed on a Raspberry Pi.
These two sites were very helpful in wiring up the ATmega328P to the GPIO pins on the Raspberry Pi:
| #include <AppleMidi.h> | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266HTTPClient.h> | |
| #include <WiFiUdp.h> | |
| #include <SoftwareSerial.h> | |
| #include <LEAmDNS.h> | |
| #include <LEAmDNS_Priv.h> | |
| #include <ESP8266mDNS.h> | |
| #include <LEAmDNS_lwIPdefs.h> |
| #include <avr/sleep.h> | |
| #include <avr/wdt.h> | |
| volatile bool wdtFired; | |
| // watchdog interrupt | |
| ISR (WDT_vect) | |
| { | |
| wdt_disable(); // disable watchdog | |
| wdtFired = true; |