Jpe230 / SonicPad-Debian

Port of Debian for the SonicPad (Allwinner R818)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

G-sensor configuration

marcelolcosta opened this issue · comments

Hi,
Thank you so much for your contribution. I installed the OS yesterday and everything is working.
I remember seeing a topic about the configuration of the g-sensor, but I cant find it anymore. could you, please, point it to me?

Cheers,

answering to my own question:
1 - cd ~/klipper
2 - sudo cp ./scripts/klipper-mcu.service /etc/systemd/system/
3 - sudo systemctl enable klipper-mcu.service
4 - make menuconfig
5 - select "Linux process" as microcontroller architecture
6 - save and exit
7 - sudo service klipper stop
8- make flash
9 - sudo service klipper start
10 - add to printer.cfg:

[mcu rpi]
serial: /tmp/klipper_host_mcu

[adxl345]
cs_pin: rpi:None
spi_speed: 2000000
spi_bus: spidev2.0

[resonance_tester]
accel_chip: adxl345
probe_points:
    122, 115, 10