Skip to content

Instantly share code, notes, and snippets.

View ayushmankumar7's full-sized avatar
🗺️
Hustling

Ayushman Kumar ayushmankumar7

🗺️
Hustling
View GitHub Profile
@tonyseek
tonyseek / README.rst
Last active November 5, 2022 15:20
Build Python binding of C++ library with cffi (PyPy/Py3K compatible)

Run with Python:

pip-2.7 install cffi
PYTHON=python2.7 sh go.sh

Run with PyPy:

pip-pypy install cffi
PYTHON=pypy sh go.sh
#!/usr/bin/python
import os
import serial
import crcmod
import time
import time as time_
gps_set_success = False # boolean for the status of flightmode
time_set = False