#Wokwi Help

13 messages · Page 1 of 1 (latest)

wild reef
#

I have to complete a project and long story short, the software specified within the instructions is different to the software that we are using (we are using Wokwi).

The instructions say to use this code:

#include <IRremote.h> //Notice we have included the IRremote library here.
//Variables:
IRrecv irrecv(10); //Set up the IR Reciever, call it irrecv and attach it to the correct pin
decode_results results; //Set up a variable to hold the results
void setup()
{
// put your setup code here, to run once:
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
irrecv.blink13(true); //Blinks the LED on the Arduino board as it gets data from the remote.
}
void loop() {
// put your main code here, to run repeatedly:
if (irrecv.decode(&results)) {
String tmp = (String)results.value;
if (tmp == "4294967295") //This value tells the Arduino that the previous button is still active.
{
Serial.println("Button still active."); //Report to the serial monitor the last button was still held
down
}
else {
Serial.println(results.value, HEX); //A new button has been pressed with the value shown.
}
irrecv.resume(); // Receive the next value
}
}
//----End Code (copy to here)----```
open adderBOT
#

@wild reef

It looks like you may have code formatting errors in your message

Note: Make sure to use back-ticks (`) and not quotes (')
Note: Make sure to specify a highlighting language, e.g. `cpp`, after the back-ticks

Markup

```c
int main() {}
```

Result
int main() {}
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

wild reef
#

The problem is, that Wokwi free version doesnt allow me to upload libraries. And on top of that, when i connected the library usign the library manager function it says [check the image attached]. So then I tried to downgrade it myself, but as I was never taught C (im not even sure if the langauge is C but i think it is?) i have absolutely no clue how to downgrade it. When I asked ChatGPT, it gave me this code:

const uint8_t RECV_PIN = 10;
IRrecv irrecv(10); 
decode_results results; 
void setup()
{

Serial.begin(9600);
irrecv.enableIRIn(); 
irrecv.blink13(true);
}
void loop() {

if (irrecv.decode(&results)) {
String tmp = (String)results.value;
if (tmp == "4294967295") 
{
Serial.println("Button still active."); 
}
else {
Serial.println(results.value, HEX); 
}
irrecv.resume(); 
}
}

However, when i try to run this code i get this error: [Check other attachment].

I am on the web version and like i said, i was never taught C, so i dont even know where to start to solve this issue

#

^ 2nd part of message since discord doesnt allow me to send messages that are over 2k characters

#

context of the project:

wild reef
#

Wait so does anyone know how to downgrade a version while being on the non-paid version or does anyone know how to stop to compilation error (I tried the vs code extension but I don’t understand that at all so I didn’t use it)

final prairie
#

side note: there's official Wokwi support server on Discord

wild reef
#

i could only find an expiered one

#

nvm got it thanks for telling me

open adderBOT
#

@wild reef Has your question been resolved? If so, type !solved :)

wild reef
#

!solved