New answers tagged

2

For the benefit of anyone reading Jeremy Blum's Exploring Arduino book who is having the same issue- he has labelled the transistor wrong in the book so the collector and emitter are back to front. Turn the transistor around to face the other way and your issue will be resolved.


2

Your code has some flaws, that I will address here: The main problem, that you see here, is that you only let the slave write data into the buffer, when it is receiving data. But you never send data to it. So there is never anything in the buffer. In the slave code you have void receiveEvent(int howMany) { while(1 < Wire.available()) // loop through ...


1

Your problem is that you are confused about the meaning of gear. One possible meaning could be 0 = neutral, 1 .. 5 = gear. But then, when changing gears you can't simply do + or -, as the sequence is 1 - 0 - 2 - 3 - ... The other interpretation is: gear-- from 2 means neutral and you display something that indicates neutral ( e.g. a '0' or a '-' ) ...


0

Likely problem I'm not sure how to solve the problem, however, I see at least one item that looks strange in the //neutral part: gear = HIGH; This seems gear is a pin status (LOW/HIGH), but two lines above: if ((val_n == HIGH) &&gear<=2) Here gear is an integer value. This seems quite inconsequent to me. Pin 4 The reason is you do not have ...


0

In the library ESPAsyncWebServer.h are these two possible function variants defined void send_P(int code, const String& contentType, const uint8_t * content, size_t len, AwsTemplateProcessor callback=nullptr); void send_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback=nullptr); So when using const char ...


0

here's an expression that strips every character that is not ( alpha numeric or space character, or period character) that is also Followed by an alpha numeric or space or period and replaces it by capitalising the following character. find ./ -depth | perl -wan -F'/' -e ' chomp; chomp($F[-1]);$x=$_; if ($F[-1]=~m/[^\p{Alnum}\d \.]/ and substr($F[-1],0,1) ...


Top 50 recent answers are included