 // Singleton instance of the radio driver
 RH_RF95 rf95(RFM95_CS, RFM95_INT);
 
-// OLED
-U8GLIB_SSD1306_128X64_2X u8g(U8G_I2C_OPT_NONE);
-
 theapi::GardenPayload tx_payload = theapi::GardenPayload();
 theapi::AckPayload ack_payload = theapi::AckPayload();
 
 uint8_t msg_id = 0;
 int rssi = 0;
-
-typedef struct {
-  int sent;
-  int got;
-  int rssi;
-}
-monitor_t;
-monitor_t monitor;
 
 AES128 cipher;
 uint8_t encrypted_buffer[ENCRYPTION_BUFFER_SIZE];
 uint8_t decrypted_buf[ENCRYPTION_BUFFER_SIZE];
 
-uint8_t rx_node_id = 1;
-uint8_t garden_node_id = 2;
-
 void setup() {
   pinMode(RFM95_RST, OUTPUT);
   digitalWrite(RFM95_RST, HIGH);
 
   Serial.begin(115200);
 
-  //u8g.setRot180();
-  monitor.sent = 0;
-  monitor.got = 0;
-  monitor.rssi = 0;
-  displayUpdate();
   
   delay(100);
 


uint16_t readSolarCurrent() {
  // 1 ohm inline resistor
  analogReference(INTERNAL);
  uint16_t val;
  // After changing the analog reference, 
  // the first few readings from analogRead() may not be accurate.
  for (uint8_t i = 0; i < 3; i++) { 
    val = analogRead(PIN_SENSOR_SOLAR_CURRENT);
  }
  // Average the next readings.
  val = 0;
  for (uint8_t i = 0; i < 2; i++) { 

#include <Crypto.h>
#include <AES.h>
#include <RH_RF95.h>

#include "config.h"
#include "GardenPayload.h"
#include "AckPayload.h"
