This commit is contained in:
2025-12-03 23:27:56 +01:00
parent 8c23e6b8f9
commit b72dd738d2
3 changed files with 8 additions and 8 deletions

View File

@@ -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;