This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
Tests k-Nearest-Neighbors using Rtree library | |
Requires: numpy, matplotlib, rtree | |
Copyright (C) Simon D. Levy 2020 | |
MIT License | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with gcc -o readsonar mb1242_wiringpi.c -lwiringPi -lpthread | |
#include <wiringPiI2C.h> | |
#include <wiringPi.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> |