Differences
This shows you the differences between two versions of the page.
computer:raspberry_pi_sense_hat [2019/05/23 14:49] tdobes created |
computer:raspberry_pi_sense_hat [2019/05/28 10:41] (current) tdobes |
||
---|---|---|---|
Line 1: | Line 1: | ||
<code> | <code> | ||
#aptitude install sense-hat | #aptitude install sense-hat | ||
- | aptitude install python-sense-hat # or python3-sense-hat if you prefer | + | aptitude install python-sense-hat i2c-tools # or python3-sense-hat if you prefer -- i2c-tools creates the i2c group |
sed -i -e 's/^#dtparam=i2c_arm=on$/dtparam=i2c_arm=on/g' /boot/config.txt | sed -i -e 's/^#dtparam=i2c_arm=on$/dtparam=i2c_arm=on/g' /boot/config.txt | ||
- | reboot # yes, you need to do this - it activates the i2c bus | + | echo i2c-dev >> /etc/modules |
+ | adduser tdobes input # for /dev/input/event# | ||
+ | adduser tdobes i2c # for /dev/i2c-1 | ||
+ | adduser tdobes video # for /dev/fb1 | ||
+ | reboot # yes, you need to do this - it activates the i2c bus changes we made to config.txt | ||
</code> | </code> |