Mise en forme
This commit is contained in:
BIN
Images/128w/Logo.png
Normal file
BIN
Images/128w/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
BIN
Images/16w/Logo.png
Normal file
BIN
Images/16w/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 645 B |
BIN
Images/256w/Logo.png
Normal file
BIN
Images/256w/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
Images/32w/Logo.png
Normal file
BIN
Images/32w/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
BIN
Images/64w/Logo.png
Normal file
BIN
Images/64w/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
1
SVG/Logo.svg
Normal file
1
SVG/Logo.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 63 KiB |
@@ -1,6 +1,6 @@
|
|||||||
// ZenDrive Simulator firmware
|
// ZenDrive Simulator firmware
|
||||||
// Copyright (c) 2021 - Valentin Boulanger
|
// Copyright (c) 2021 - Valentin Boulanger
|
||||||
// Version : 1.0.0
|
// Version : 1.2.1
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
#include "ZenDrive.h"
|
#include "ZenDrive.h"
|
||||||
@@ -30,8 +30,6 @@ const bool USE_GEARSHIFT = true;
|
|||||||
const bool USE_PEDALS = true;
|
const bool USE_PEDALS = true;
|
||||||
const bool USE_WHEEL = true;
|
const bool USE_WHEEL = true;
|
||||||
|
|
||||||
const int INTERVAL = 15;
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
// Initialize sensors
|
// Initialize sensors
|
||||||
pinMode(SPEEDS_PIN, INPUT);
|
pinMode(SPEEDS_PIN, INPUT);
|
||||||
@@ -54,7 +52,7 @@ void setup() {
|
|||||||
pinMode(FOG_LIGHTS_PIN, INPUT_PULLUP);
|
pinMode(FOG_LIGHTS_PIN, INPUT_PULLUP);
|
||||||
|
|
||||||
// Set current states
|
// Set current states
|
||||||
/* Gearshift */
|
/* Gearshift module */
|
||||||
if(USE_GEARSHIFT){
|
if(USE_GEARSHIFT){
|
||||||
int value = analogRead(SPEEDS_PIN);
|
int value = analogRead(SPEEDS_PIN);
|
||||||
if(value < 200) ZenDrive.switchSpeed1();
|
if(value < 200) ZenDrive.switchSpeed1();
|
||||||
@@ -150,11 +148,11 @@ void loop() {
|
|||||||
/* Steering wheel module */
|
/* Steering wheel module */
|
||||||
if(USE_WHEEL){
|
if(USE_WHEEL){
|
||||||
// Blinkers
|
// Blinkers
|
||||||
if(digitalRead(LEFT_BLINKER_PIN)){
|
if(!digitalRead(LEFT_BLINKER_PIN)){
|
||||||
ZenDrive.setBlinkerLeft(true);
|
ZenDrive.setBlinkerLeft(true);
|
||||||
ZenDrive.setBlinkerRight(false);
|
ZenDrive.setBlinkerRight(false);
|
||||||
}
|
}
|
||||||
else if(digitalRead(RIGHT_BLINKER_PIN)){
|
else if(!digitalRead(RIGHT_BLINKER_PIN)){
|
||||||
ZenDrive.setBlinkerLeft(false);
|
ZenDrive.setBlinkerLeft(false);
|
||||||
ZenDrive.setBlinkerRight(true);
|
ZenDrive.setBlinkerRight(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
Copyright (c) 2021, Valentin Boulanger
|
Copyright (c) 2021, Valentin Boulanger
|
||||||
|
|
||||||
This library is a part of the ZenDrive simulator firmware.
|
This library is a part of the ZenDrive simulator firmware.
|
||||||
Version : 1.0.0
|
Version : 1.3.2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ZenDrive.h"
|
#include "ZenDrive.h"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
Copyright (c) 2021, Valentin Boulanger
|
Copyright (c) 2021, Valentin Boulanger
|
||||||
|
|
||||||
This library is a part of the ZenDrive simulator firmware.
|
This library is a part of the ZenDrive simulator firmware.
|
||||||
Version : 1.0.0
|
Version : 1.3.2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ZENDRIVE_h
|
#ifndef ZENDRIVE_h
|
||||||
|
|||||||
Reference in New Issue
Block a user