sudo apt-get install build-essential python3-dev libnetfilter-queue-dev
# In a Python venv:
pip install netfilterqueue scapy
from scapy.all import *
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Hardware Control ⚙️</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> |
#include "lcd_test.h" | |
#define FCY 16000000UL | |
#include <libpic30.h> | |
#define LCD_RS LATBbits.LATB15 | |
#define LCD_RW LATDbits.LATD5 | |
#define LCD_E LATDbits.LATD4 | |
#define LCD_DATA PORTE | |
#define LCD_DATA_TRIS TRISE |
Using the Quartus Project here: https://github.com/jgibbard/de10_nano_clean/tree/with_fpga_leds_and_uart
Follow the instructions here: https://gibbard.me/linux_debian_de10_2025/ but do the following things differently:
Before building the kernel make the following modification to the device tree:
gedit linux/arch/arm/boot/dts/socfpga_cyclone5_de0_nano_soc.dts
# Compiler and flags | |
CXX := g++ | |
CXXFLAGS := -Wall -std=c++11 -I./lua | |
# Directories | |
LUA_DIR := ./lua | |
SRC_DIR := . | |
# Files | |
SRC := $(wildcard $(SRC_DIR)/*.cpp) |
#include <iostream> | |
#include "protocol_stack.hpp" | |
#include "protocol.hpp" | |
#include "protocol1.hpp" | |
#include "protocol2.hpp" | |
#include "protocol3.hpp" | |
int main() { | |
ProtocolStack<Protocol1> example1; |
#!/usr/bin/env python3 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import serial | |
from enum import Enum | |
import struct | |
# ---------------------------------------------------------------------- | |
# System Constants |
#!/usr/bin/env python3 | |
# Tested with python3.11, geographiclib==2.0, matplotlib==3.8.2, numpy==1.26.2 | |
import math | |
import numpy as np | |
import csv | |
import argparse | |
def get_x_y_data(filename): |
#!/usr/bin/env python3 | |
import math | |
import shapefile | |
from PIL import Image, ImageDraw | |
# Longitude range to display in degrees | |
x_range = [-180,180] | |
# Latitude range to display in degrees | |
y_range = [-90,90] |