X-Git-Url: http://git.rot13.org/?p=trilby-hat-fpga;a=blobdiff_plain;f=README.md;h=32f5e239635124533ba7147d18f763f738b576f0;hp=293910d0d2b298983cbb1ba772d307b00db2256a;hb=619adcc915cbf7b7ded0992cd08f2438957e3a22;hpb=0d59486af5cf1f64018416e522e651655a734ce8 diff --git a/README.md b/README.md index 293910d..32f5e23 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,26 @@ This is my attempt at using open source tools to generate bitstream Run `make prog` to load the example to the board. + +## enable RTC + +Add to config.txt: + +``` +dtoverlay=i2c-rtc,ds1307 +``` + +or execute in shell: + +``` +echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device +``` + + ## read HAT ID eeprom Add to config.txt: +``` dtoverlay=i2c-gpio,i2c_gpio_sda=0,i2c_gpio_scl=1,bus=4 +```