Warning
This commit is contained in:
@@ -81,7 +81,7 @@ void pinMode(unsigned char p, unsigned char mode)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char input;
|
||||
int input;
|
||||
int vKey;
|
||||
} KeyboardIO;
|
||||
|
||||
@@ -342,7 +342,7 @@ double analogRead(int p)
|
||||
|
||||
void digitalWrite(unsigned int p, int value)
|
||||
{
|
||||
if (p < 0 || p > 255)
|
||||
if (p > 255)
|
||||
{
|
||||
printf("Pin %d is out of Range.", p);
|
||||
return;
|
||||
@@ -386,7 +386,7 @@ void digitalWrite(unsigned int p, int value)
|
||||
|
||||
void analogWrite(unsigned int p, double value)
|
||||
{
|
||||
if (p < 0 || p > 31)
|
||||
if (p > 31)
|
||||
{
|
||||
printf("Pin %d is out of Range.", p);
|
||||
return;
|
||||
|
||||
8
main.cpp
8
main.cpp
@@ -3,7 +3,7 @@
|
||||
#include <math.h>
|
||||
#include <locale.h>
|
||||
#include <array>
|
||||
#include "main.h"
|
||||
#include "main.hpp"
|
||||
#include "AutomForArduino.cpp"
|
||||
|
||||
#include <prometheus/counter.h>
|
||||
@@ -41,7 +41,7 @@ Gauge* debit_entree = nullptr;
|
||||
Gauge* debit_sortie = nullptr;
|
||||
// ************************************************************
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main()
|
||||
{
|
||||
/* Initialisation */
|
||||
ConsoleInit();
|
||||
@@ -562,7 +562,7 @@ void Process()
|
||||
_digital[IN_SENSOR_HIGH].ivalue = test;
|
||||
}
|
||||
|
||||
Affichage(t);
|
||||
Affichage();
|
||||
|
||||
t_backup = t;
|
||||
}
|
||||
@@ -694,7 +694,7 @@ void AffichageWindow()
|
||||
wrefresh(window);
|
||||
}
|
||||
|
||||
void Affichage(unsigned long t)
|
||||
void Affichage()
|
||||
{
|
||||
mvwprintw(window, 1, 50, "%5.1f s", t_elapsed);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ double SimulConsoSinusoidale(long t);
|
||||
double SimulConsoBrown(double valeur_precedente);
|
||||
|
||||
void AffichageWindow();
|
||||
void Affichage(unsigned long t);
|
||||
void Affichage();
|
||||
void AffichageGraphe(int y, int x, double value);
|
||||
|
||||
// KEYBOARD INPUT
|
||||
Reference in New Issue
Block a user