Hi,
I have searched and only found a reference on the Radiohead list saying it now supports Atmega1284, but no details.
I have tried with just their simple ASK rx example below, with various pin numbers on the Bobduino mini 1284 board, and get no response when transmitter sends.
With a similar receiver on a promini board it receives fine.
Any suggestions?
John
// ask_receiver.pde
// -*- mode: C++ -*-
// Simple example of how to use RadioHead to receive messages
// with a simple ASK transmitter in a very simple way.
// Implements a simplex (one-way) receiver with an Rx-B1 module
#include <RH_ASK.h>
#include <SPI.h> // Not actualy used but needed to compile
RH_ASK driver;
// RH_ASK driver(2000, 12, 4, 5); // ESP8266 or ESP32: do not use pin 11
void setup()
{
Serial.begin(9600); // Debugging only
if (!driver.init())
Serial.println("init failed");
}
void loop()
{
uint8_t buf[RH_ASK_MAX_MESSAGE_LEN];
uint8_t buflen = sizeof(buf);
if (driver.recv(buf, &buflen)) // Non-blocking
{
int i;
Serial.println("Got ");
// Message with a good checksum received, dump it.
driver.printBuffer("Got:", buf, buflen);
}
}