名称 | ピン | 信号名 | TN9K | FPGAピン |
---|---|---|---|---|
TX1 | 1 | rmii_txd[1] | J5 1 | 38 |
NC | 2 | |||
TX-EN | 3 | rmii_txen | J5 2 | 37 |
TX0 | 4 | rmii_txd[0] | J5 3 | 36 |
RX0 | 5 | rmii_rxd[0] | J5 4 | 39 |
RX1 | 6 | rmii_rxd[1] | J5 5 | 25 |
REFCLK | 7 | rmii_txclk | J5 6 | 26 |
CRS | 8 | rmii_crs_dv | J5 7 | 27 |
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 <SD.h> | |
#include <M5Unified.h> | |
#include <esp_log.h> | |
#include <vector> | |
static constexpr const gpio_num_t SDCARD_CSPIN = GPIO_NUM_NC; | |
static constexpr const size_t buf_num = 3; |
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
0x03ef03ef: ?? ??:0 | |
0x03ef03ef: ?? ??:0 | |
0x03ef03ef: ?? ??:0 | |
0x0000041a: ?? ??:0 | |
0x00000000: ?? ??:0 | |
0x0000021b: ?? ??:0 | |
0x4ff1efd8: ?? ??:0 | |
0x4ff21048: ?? ??:0 | |
0x00000001: ?? ??:0 | |
0x000000d7: ?? ??:0 |
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
`default_nettype none | |
module register_slice #( | |
parameter int WIDTH_BITS = 8 | |
)( | |
input wire clock, // クロック | |
input wire reset, // リセット (正論理) | |
input wire input_valid, // 入力VALID | |
output logic input_ready, // 入力READY | |
input wire [WIDTH_BITS-1:0] input_data, // 入力データ |
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 "hal/wdt_hal.h" | |
static void disable_chip_wdt(void) { | |
wdt_hal_context_t rtc_wdt_ctx = {.inst = WDT_RWDT, .rwdt_dev = &RTCCNTL}; | |
wdt_hal_write_protect_disable(&rtc_wdt_ctx); | |
wdt_hal_disable(&rtc_wdt_ctx); | |
wdt_hal_write_protect_enable(&rtc_wdt_ctx); | |
} |
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
$ edid-decode /sys/class/drm/card1-HDMI-A-2/edid | |
edid-decode (hex): | |
00 ff ff ff ff ff ff 00 67 13 66 66 00 00 00 00 | |
1e 20 01 04 82 00 00 78 ee de 50 a3 54 4c 99 26 | |
0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 | |
01 01 01 01 01 01 e4 10 90 82 10 00 50 50 32 1e | |
e4 05 0a c0 00 00 00 18 e4 10 90 82 10 00 50 50 | |
32 1e e4 05 0a c0 00 00 00 18 e4 10 90 82 10 00 | |
50 50 32 1e e4 05 0a c0 00 00 00 18 00 00 00 fc |
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
import time | |
import serial | |
import struct | |
from typing import Tuple | |
s = serial.Serial('COM19', 1000000) | |
def read_packet(servo_id: int, reg_address: int, reg_length: int) -> Tuple[bytes, int]: | |
packet = [0xff, 0xff, servo_id, 0x04, 0x02, reg_address, reg_length] | |
packet.append(0xff - (sum(packet[2:]) & 0xff)) # checksum | |
response_length = 2 + 1 + 1 + 1 + reg_length + 1 # header, servo_id, packet_length, command, content, checksum |
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
SUBSYSTEMS=="usb", ATTRS{idVendor}=="33aa", ATTRS{idProduct}=="0120", GROUP="plugdev", MODE="0660" |
This file has been truncated, but you can view the full file.
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
static constexpr const unsigned char fs_bitstream_rle[] = { | |
0x16, 0xff, 0x00, 0x03, 0xa5, 0xc3, 0x06, 0x03, 0x00, 0x00, 0x05, 0x11, 0x00, 0x48, 0x1b, 0x10, | |
0x07, 0x00, 0x00, 0x02, 0x51, 0x00, 0x06, 0xff, 0x01, 0x0b, 0x03, 0x00, 0x00, 0x02, 0xd2, 0x00, | |
0x02, 0xff, 0x04, 0x00, 0x01, 0x12, 0x03, 0x00, 0x00, 0x05, 0x3b, 0x80, 0x04, 0xc8, 0xf0, 0x1a, | |
0x00, 0x00, 0x05, 0xc0, 0x34, 0x10, 0x00, 0x80, 0x12, 0x00, 0x00, 0x02, 0x03, 0x01, 0x05, 0x00, | |
0x00, 0x05, 0xc0, 0x34, 0x10, 0x00, 0x80, 0x02, 0x00, 0x00, 0x03, 0x14, 0x03, 0x01, 0x1c, 0x00, | |
0x00, 0x04, 0x03, 0x41, 0x00, 0x08, 0x13, 0x00, 0x00, 0x04, 0x34, 0x10, 0x00, 0x80, 0x02, 0x00, | |
0x00, 0x05, 0x0c, 0x03, 0x41, 0x00, 0x08, 0x13, 0x00, 0x00, 0x04, 0x34, 0x10, 0x00, 0x80, 0x03, | |
0x00, 0x00, 0x04, 0x03, 0x41, 0x00, 0x08, 0x04, 0x00, 0x00, 0x04, 0x34, 0x10, 0x00, 0x80, 0x19, | |
0x00, 0x01, 0xc0, 0x06, 0x00, 0x01, 0x0c, 0x16, 0x00, 0x00, 0x05, 0xc0, 0x34, 0x10, 0x00, 0x80, |
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
#!/usr/bin/env python3 | |
import svgwrite | |
pin_type_colors = { | |
'gnd': (0x000000, 0xffffff), | |
'3v3': (0xc00000, 0xffffff), | |
'5v': (0xc00000, 0xffffff), | |
'bat': (0xc0c000, 0x000000), | |
'hpwr': (0xc0a000, 0x000000), | |
'i2c': (0x003000, 0x000000), |
NewerOlder