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
from board import * | |
from busio import I2C | |
import struct | |
import time | |
i2c = I2C(GP21, GP20) | |
i2c.try_lock() | |
vm_address = 0x49 | |
cm_address = 0x48 |
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 <M5EPD.h> | |
#include <Free_Fonts.h> | |
#include <WiFi.h> | |
#include <lwip/sockets.h> | |
#include <lwip/netdb.h> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstdint> | |
#include <cstring> |
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 <wiring_private.h> | |
#define PIN_BLE_SERIAL_X_RX (84ul) | |
#define PIN_BLE_SERIAL_X_TX (85ul) | |
#define PAD_BLE_SERIAL_X_RX (SERCOM_RX_PAD_2) | |
#define PAD_BLE_SERIAL_X_TX (UART_TX_PAD_0) | |
#define SERCOM_BLE_SERIAL_X sercom0 | |
static Uart rtl_uart(&SERCOM_BLE_SERIAL_X, PIN_BLE_SERIAL_X_RX, PIN_BLE_SERIAL_X_TX, PAD_BLE_SERIAL_X_RX, PAD_BLE_SERIAL_X_TX); |
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/; | |
/ { | |
fragment@0 { | |
target-path = "/fpga-full"; | |
__overlay__ { | |
firmware-name = "fpga.bin"; | |
}; | |
}; | |
}; |
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
module multiple; | |
logic a; | |
initial a = 1; | |
// The assigned value of the variable is determinate | |
initial begin | |
a <= #4 0; // schedules a = 0 at time 4 | |
a <= #4 1; // schedules a = 1 at time 4 | |
end // At time 4, a = 1 | |
endmodule |
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 "SAMD51_TC.h" | |
bool isLEDOn = false; | |
char time = 0; | |
void setup() | |
{ | |
//SerialUSB.begin(115200); | |
//while(!SerialUSB); | |
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 "SAMD51_TC.h" | |
#include <samd.h> | |
#include <cstdint> | |
#include <array> | |
#define GENERIC_CLOCK_GENERATOR_1M 5u | |
class SAMD51TCInterruptHelper; |
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 <wiring_private.h> | |
static Uart Serial3(&sercom3, PIN_WIRE_SCL, PIN_WIRE_SDA, SERCOM_RX_PAD_1, UART_TX_PAD_0); | |
void setup() { | |
Serial.begin(115200); | |
while(!Serial); | |
Serial3.begin(115200); | |
pinPeripheral(PIN_WIRE_SCL, PIO_SERCOM_ALT); |
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 <TFT_eSPI.h> | |
#include <cstdint> | |
unsigned char boot_bin[] = { | |
0x00, 0x00, 0x03, 0x20, 0x09, 0x00, 0x00, 0x04, 0x80, 0xb5, 0x00, 0xaf, | |
0x88, 0xb0, 0x00, 0xf0, 0x4d, 0xf8, 0x07, 0x90, 0x07, 0x98, 0x01, 0x21, | |
0xca, 0x03, 0x82, 0x60, 0x03, 0x91, 0x00, 0xf0, 0x4d, 0xf8, 0x06, 0x90, | |
0x06, 0x98, 0x03, 0x99, 0xca, 0x02, 0x82, 0x60, 0x06, 0x98, 0x82, 0x61, | |
0xff, 0xe7, 0x07, 0x98, 0x01, 0x21, 0xca, 0x03, 0xc2, 0x61, 0x05, 0x91, | |
0xff, 0xe7, 0x05, 0x98, 0x15, 0x49, 0x88, 0x42, 0x18, 0xd8, 0xff, 0xe7, | |
0x06, 0x98, 0x01, 0x21, 0xc9, 0x02, 0xc1, 0x61, 0x00, 0x20, 0x04, 0x90, |
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
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"${env:HONE}/.arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include", | |
"${env:HOME}/.arduino15/packages/Seeeduino/tools/CMSIS/**", | |
"${env:HOME}/.arduino15/packages/Seeeduino/tools/CMSIS-Atmel/**", | |
"${env:HOME}/.arduino15/packages/Seeeduino/hardware/samd/1.7.5/**", |