www.joy
-
it.net
Pascalstr. 8 47506 Neukirchen
-
Vluyn
4.3 Usage of the library
You can compile the code example from the library with the following
command.
./compile.sh
You can press
Y
to confirm starting the sample code immediately after
compiling, or run the following command.
./build/arm/debug/bin/u8g2demo
You can also edit the sample code using the
main.cpp. If you edit this file,
you must recompile it with the first command.
Agree with the question
„
Would you like the SPI interface to be enabled?
“
with
„
Yes
“
.
Finish the activation of the SPI interface
„
OK
“
and close the configurati-
on with
„
Finish
“
.
You have now successfully activated the SPI interface. Please reboot your
Raspberry Pi.
cd ~/u8g2
-
rpi
-
demo/
sudo reboot