This file contains hidden or 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 <sys/param.h> /* MIN */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stddef.h> | |
#include <errno.h> | |
#include <assert.h> |
This file contains hidden or 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
sifive p550 ubuntu works on megrez mostly | |
https://github.com/sifiveinc/hifive-premier-p550-ubuntu/releases/tag/2025.04.00 | |
- missing wifi fw | |
- audio driver seems broken, untested |
This file contains hidden or 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
local ffi = require("ffi") | |
local io = require("io") | |
local bit = require("bit") | |
ffi.cdef[[ | |
typedef unsigned char u_char; | |
typedef unsigned char u_int8_t; | |
typedef uint32_t u_int32_t; | |
typedef uint64_t u_int64_t; |
This file contains hidden or 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
local ffi = require("ffi") | |
local unix = require("unix") | |
ffi.cdef [[ | |
typedef uint32_t pid_t; | |
struct msgbuf; | |
struct imsgbuf { | |
struct msgbuf *w; |
This file contains hidden or 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
authentication LOCAL type local { | |
users-file "/etc/npppd/npppd-users" | |
} | |
tunnel PPPOE protocol pppoe { | |
mru 1400 | |
listen on interface rge3 | |
} | |
ipcp IPCP { |
This file contains hidden or 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 <err.h> | |
#include <fcntl.h> | |
#include <limits.h> | |
#include <signal.h> | |
#include <stddef.h> | |
#include <string.h> | |
#include <sysexits.h> | |
#include <unistd.h> | |
#include <stdlib.h> |
This file contains hidden or 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
hello |
This file contains hidden or 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
esphome: | |
name: epaper | |
friendly_name: epaper | |
esp8266: | |
board: d1_mini | |
# Enable logging | |
logger: |
This file contains hidden or 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 <Arduino.h> | |
#include <GxEPD2_3C.h> | |
#include <Fonts/FreeMonoBold9pt7b.h> | |
GxEPD2_3C<GxEPD2_290_Z13c, GxEPD2_290_Z13c::HEIGHT> pdisplay(GxEPD2_290_Z13c(/*CS=D8*/ D8, /*DC=D3*/ D0, /*RST=D4*/ D1, /*BUSY=D2*/ D2)); // GDEH029Z13 128x296, UC8151D | |
const char HelloWorld[] = "Hello World!"; | |
void setup() { | |
Serial.begin(115200); |
This file contains hidden or 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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "allwinner,sun50i-h5"; | |
fragment@0 { | |
target = <&uart1>; | |
__overlay__ { | |
status = "okay"; |
NewerOlder