convert to LVCMOS33 as it should be for 3v3
[trilby-hat-fpga] / README.md
1 # Trilby HAT ECP5 45k FPGA
2
3 This is my attempt at using open source tools to generate bitstream
4
5 Run `make prog` to load the example to the board.
6
7
8 ## enable RTC
9
10 Add to config.txt:
11
12 ```
13 dtoverlay=i2c-rtc,ds1307
14 ```
15
16 or execute in shell:
17
18 ```
19 echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
20 ```
21
22
23 ## read HAT ID eeprom
24
25 Add to config.txt:
26
27 ```
28 dtoverlay=i2c-gpio,i2c_gpio_sda=0,i2c_gpio_scl=1,bus=4
29 ```