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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <inttypes.h> | |
#define POWER(x, y) (long int)pow(x, (float)y) | |
uint8_t* puzzledNumber(int32_t number, uint16_t *size) |
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
#include "LCD4884.h" | |
//#include "Wire.h" | |
#include "Servo.h" | |
Servo servo; | |
//#include "Adafruit_BMP085.h" | |
//Adafruit_BMP085 bmp; | |
#define DEBOUNCE_MAX 15 | |
#define DEBOUNCE_ON 10 | |
#define DEBOUNCE_OFF 3 |
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
const int relais = 4; | |
const int switch_haut = 3; | |
const int switch_bas = 2; | |
const int photoresistance = A0; | |
const int anemometre = A1; | |
void setup() | |
{ |
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
const int switchG = 2; | |
const int switchA = 3; | |
const int switchB = 4; | |
const int switchC = 5; | |
const int vanne = 6; | |
int switchGstate = 0; | |
int switchAstate = 0; | |
int switchBstate = 0; | |
int switchCstate = 0; |
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
#include "LSA-lib.nxc" //http://www.mindsensors.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=219 | |
#define LeftMotor OUT_A | |
#define RightMotor OUT_C | |
#define BothMotors OUT_AC | |
#define Plateforme OUT_B | |
#define Capteur_Couleur IN_1 | |
#define Capteur_Ligne IN_2 | |
#define ADDR 0x14 |
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
#!/bin/bash | |
clear | |
echo -e "\n\t\t#Bluetooth script by Horloge-Skynet.\n" | |
echo -e "\t\033[1;31m/!\ Be sure that your Hardware Bluetooth is running... /!\ \033[0m \n\n" | |
if [ -d /usr/share/doc/bluez/ ] || [ -d /usr/share/doc/bluez-utils/ ]; then | |
echo -e "Bluetooth of \033[1m$USER\033[0m on \033[1m$HOSTNAME\033[0m with \033[1m$SHELL\033[0m:" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#include <errno.h> | |
#define BUFFERSIZE 64 | |
void shellSort(const char *const); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <sys/wait.h> | |
void sky_clear(void) | |
{ |