On
The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.
is written
Compatibility
This library is compatible with the avr, esp8266, esp32, stm32 architectures so you should be able to use it on the following Arduino boards:
But this lib works also with MKR boards (Out of the box with digital inputs)
I did not find a way to make a "pull request" for such a Arduino Website.
How can i handle this?
srnet
March 17, 2022, 10:30am
2
Try a Google search for the Github location ?
To my knowledge you can't fix te documentation, but I might be wrong. My route would be to request a fix here: https://www.arduino.cc/en/contact-us/ .
That's what i tought. No worries. The interested one will find. It's a nice lib but a bit abadoned.
in0
March 18, 2022, 9:41am
5
These particular pages are generated automatically from the library metadata of all the >4600 libraries in the Arduino Library Manager index. So in the case of 3rd party libraries like this, Arduino doesn't have anything to do with the maintenance of the content, other than the template that the metadata is filled into.
The information that determines this compatibility list is here in the library.properties
metadata file of the library:
https://github.com/sui77/rc-switch/blob/master/library.properties#L9
architectures=avr,esp8266,esp32,stm32
So the library author has specified that the library is compatible with the boards of those architectures.
There is a related report here:
opened 03:31PM - 26 Feb 20 UTC
I tried to use rc-switch on an M0 board (Trinket M0), but could not get the Rece… iveDemo_Simple to run.
The compiler gave a warning
__WARNING: library rc-switch claims to run on avr, esp8266, esp32 architecture(s) and may be incompatible with your current board which runs on samd architecture(s).__
but no errors. Still, the sketch just seemed to do nothing.
Issue #34 reads like it should run on M0, assuming the bug mentioned there is fixed by now.
~~I have not tried it yet, but maybe someone else has?~~
I fiddled around some more, tried to implement the solution from #34 (without really knowing what i was doing, i substituted the calls to the mentioned function in RCswitch.cpp) and... it worked.
So i reverted the change from #34 just to verify, but my code still worked.
Aparently the bug is fixed now, or does not affect my use case.
So, my initial problems were somewhere else. I am not surprised, as i had tried quite a few things, also switching from win to linux, and had at some point also problems to just upload a blink. Upload only works for me after i double-press reset so the red LED pulses. Else bossac finds no device on ttyACM0.
As reference: The sketch that works for me is on a 3.3V TrinketM0 with a FS1000A transmitter:
```C++
#include <RCSwitch.h>
RCSwitch sender = RCSwitch();
// "button" pins to be pulled LOW to activate
const int Bup = 0;
void setup() {
sender.enableTransmit(3); // FS1000A Module at Pin 3
sender.setProtocol(1);
sender.setPulseLength(309);
pinMode(LED_BUILTIN, OUTPUT);
pinMode(Bup, INPUT_PULLUP);
}
void loop() {
if (digitalRead(Bup)== LOW)
{
digitalWrite(LED_BUILTIN, HIGH);
sender.send("101011100101111011110010"); // up
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
}
}
```
As the library works at least partially on M0, couldn't it include M0 in it's claims?
I tried to find out how/where these claims are made, but did not find anything when searching the code for 8266... How is that done?
As the library works at least partially on M0, couldn't it include M0 in it's claims?
No response from the library maintainer, but it does appear they are receptive to proposals from the community for expanding the list of supported architectures:
The situation has actually improved just recently:
Members of the Arduino community can now make contributions to docs, tutorials and other content directly through the GitHub repository.
Est. reading time: 3 minutes
With that added to the previous work, I would say somewhere around 95% of Arduino's documentation is now hosted in public repositories for anyone to submit pull requests:
1 Like
That's what i call a proper answer!! Thx!
system
Closed
September 15, 2022, 11:45am
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.