Wiki Info
Vuoi reagire a questo messaggio? Crea un account in pochi click o accedi per continuare.
Ricerca Avanzata
Answers
Se necessiti di aiuto, clicca il pulsante "Cerco Aiuto" (disponibile anche per i non iscritti).
Ultimi argomenti attivi
» Comunicazione termine servizio Arduino BT Control
Da Admin Mar Mag 10, 2022 12:55 pm

» Robot aspirapolvere per Alexa: Dreame D9
Da Admin Mar Feb 09, 2021 9:42 am

» Come costruire un robot smart con Arduino
Da Admin Mar Nov 17, 2020 12:15 pm

» TOPPS Trading Cards Match Attax Champsion League/Europa League 2020/21
Da Admin Mar Nov 10, 2020 3:21 pm

» Guida per utilizzare Arduino BT Control v1.2
Da Admin Gio Lug 09, 2020 12:01 pm

» Recensione Umidigi A3 Pro - Smartphone sotto i 100€
Da Admin Gio Apr 04, 2019 12:22 pm

» [Arduino] aiuto programma
Da Glak Mar Mar 12, 2019 9:30 am

» ERRORE NELLA COMPILAZIONE NEXTION
Da papat Mar Feb 26, 2019 7:11 am

» Comandare la Smart TV con Alexa senza broadlink (gratis)
Da Admin Mar Feb 19, 2019 4:31 pm

I postatori più attivi del mese
Nessun utente


PROBLEMA SU LIBRERIE

2 partecipanti

Andare in basso

PROBLEMA SU LIBRERIE Empty PROBLEMA SU LIBRERIE

Messaggio Da papat Lun Set 25, 2017 5:20 pm

Non riesco a trovare per installarle(come) le librerie:Adafruit_feather e adafruit_aio.Posto il codice completo.Grazie

Codice:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_FeatherOLED.h>
#include <Adafruit_FeatherOLED_WiFi.h>
#include <Adafruit_Sensor.h>
#include <adafruit_feather.h>
#include <adafruit_mqtt.h>
#include <adafruit_aio.h>
 
#define WLAN_SSID                 "SSID"
#define WLAN_PASS                 "PASSWORD"
 
#define VBAT_ENABLED              1
#define VBAT_PIN                  PA1
 
#define SENSOR_TSL2561_ENABLED    0
#if SENSOR_TSL2561_ENABLED
  #include <Adafruit_TSL2561_U.h>
  bool _tslFound = false;
  Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345);
#endif
 
#define AIO_ENABLED               0
#define AIO_USERNAME              "...your AIO username (see https://accounts.adafruit.com)..."
#define AIO_KEY                   "...your AIO key..."
 
#define FEED_VBAT                 "vbat"
#define FEED_TSL2561_LUX          "lux"
 
AdafruitAIO                        aio(AIO_USERNAME, AIO_KEY);
AdafruitAIOFeedGauge<float>        feedVBAT(&aio, FEED_VBAT);
AdafruitAIOFeedGauge<float>        feedLUX (&aio, FEED_TSL2561_LUX);
 
Adafruit_FeatherOLED_WiFi  oled = Adafruit_FeatherOLED_WiFi();
 
/**************************************************************************/
/*!
    @brief  Connect to the AP
    @return Error code
*/
/**************************************************************************/
bool connectAP()
{  
  oled.refreshIcons();
  oled.clearMsgArea();
  oled.println("Connecting to ...");
  oled.println(WLAN_SSID);
  oled.display();
 
  // Attempt to connect to the AP
  if ( Feather.connect(WLAN_SSID, WLAN_PASS) )
  {
    int8_t rssi = Feather.RSSI();
    uint32_t ipAddress = Feather.localIP();
    oled.setConnected(true);
    oled.setRSSI(rssi);
    oled.setIPAddress(ipAddress);
    oled.refreshIcons();
    oled.clearMsgArea();
  }
  else
  {
    // Display the error message
    err_t err = Feather.errno();
    oled.setConnected(false);
    oled.refreshIcons();
    oled.clearMsgArea();
    oled.println("Connection Error:");
    switch (err)
    {
      case ERROR_WWD_ACCESS_POINT_NOT_FOUND:
        // SSID wasn't found when scanning for APs
        oled.println("Invalid SSID");
        break;
      case ERROR_WWD_INVALID_KEY:
        // Invalid SSID passkey
        oled.println("Invalid Password");
        break;
      default:
        // The most likely cause of errors at this point is that
        // you are just out of the device/AP operating range
        oled.print(Feather.errno());
        oled.print(":");
        oled.println(Feather.errstr());
        oled.refreshIcons(); // Refresh icons in case the text ran over
        break;
    }    
    oled.display();
    // Return false to indicate that we received an error (available in feather.errno)
    return false;
  }
 
  return true;
}
papat
papat
Maker

Messaggi Messaggi : 185
Crediti Crediti : 285
Reputazione Reputazione : 3
Data d'iscrizione Data d'iscrizione : 17.10.15
Età Età : 77
Località Località : montalbano ionico

Torna in alto Andare in basso

PROBLEMA SU LIBRERIE Empty Re: PROBLEMA SU LIBRERIE

Messaggio Da Admin Ven Set 29, 2017 10:00 pm

Ciao, di cosa si tratta? Cosa fa il codice?
Admin
Admin
♔ Amministratore

Messaggi Messaggi : 4370
Crediti Crediti : 12173
Reputazione Reputazione : 187
Data d'iscrizione Data d'iscrizione : 08.03.11
Età Età : 25

https://wikiinfo.forumattivo.it

Torna in alto Andare in basso

PROBLEMA SU LIBRERIE Empty Re: PROBLEMA SU LIBRERIE

Messaggio Da papat Sab Set 30, 2017 7:16 am

il codice dice installare : libreria adafruit_aio e adafruit_feather
papat
papat
Maker

Messaggi Messaggi : 185
Crediti Crediti : 285
Reputazione Reputazione : 3
Data d'iscrizione Data d'iscrizione : 17.10.15
Età Età : 77
Località Località : montalbano ionico

Torna in alto Andare in basso

PROBLEMA SU LIBRERIE Empty Re: PROBLEMA SU LIBRERIE

Messaggio Da Contenuto sponsorizzato


Contenuto sponsorizzato


Torna in alto Andare in basso

Torna in alto


 
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.