Skip to content

Instantly share code, notes, and snippets.

View yuyue2013's full-sized avatar

行在路上 yuyue2013

View GitHub Profile
@yuyue2013
yuyue2013 / LinuxCNC-Ethercat.md
Created February 23, 2022 07:56 — forked from Bouni/LinuxCNC-Ethercat.md
Linux CNC + EtherCat + RPi 4 Setup

The folowing is a writup from Hakans forum post!

RPi Setup

  1. Download & Write image to SD card: www.linuxcnc.org/iso/linuxcnc-2.8.1-pi4.zip
  2. Configure Wifi via wpa_supplicant.conf
  3. Put SD card into RPi and verify that RT-PREEMT Kernel is running: uname -a
  4. Update everything and reboot: sudo apt update && sudo apt upgrade && sudo reboot
@yuyue2013
yuyue2013 / hm2.c
Created September 21, 2020 07:30 — forked from rene-dev/hm2.c
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
// https://github.com/LinuxCNC/hostmot2-firmware/blob/v0/regmap#L1105
//
// idrom addresses & constants
//