ESP8266 HUZZAH + Fingerprint sensor no go

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
DrLove76
 
Posts: 4
Joined: Thu Sep 17, 2015 12:10 pm

ESP8266 HUZZAH + Fingerprint sensor no go

Post by DrLove76 »

I'm trying to use the fingerprint sensor (751) w/ the ESP8266 HUZZAH module.
Actually I have not received the modules yet but I'm playing around w/ Arduino IDE configured for the ESP8266 HUZZAH board and the Fingerprint sensor HARDWARE-serial library.

If I include the library (#include <Adafruit_Fingerprint.h>) in an empty sketch and compile I get an error:
.../libraries/Adafruit_Fingerprint/Adafruit_Fingerprint.cpp:18:24: fatal error: util/delay.h: No such file or directory
#include <util/delay.h>
.

Is there a workaround for this?
I also realised that the SoftwareSerial library is not available in the HUZZAH :/

Best regards, L

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: ESP8266 HUZZAH + Fingerprint sensor no go

Post by adafruit_support_mike »

All of that code is written for the Arduino Uno, so the low-level stuff probably won't carry over to the ESP8266.

You can use the existing code as a working reference for an ESP8266 version though.

User avatar
DrLove76
 
Posts: 4
Joined: Thu Sep 17, 2015 12:10 pm

Re: ESP8266 HUZZAH + Fingerprint sensor no go

Post by DrLove76 »

FYI, It works!

Altered/added the following to the beginning of the .cpp (the hardware fingerprint sensor library, not software).

Code: Select all

#include "Adafruit_Fingerprint.h"
//#include <util/delay.h>
#ifdef __avr__
  #include <util/delay.h>
#endif
#ifdef __arm__
    #define _delay_ms(ms) delayMicroseconds((ms) * 1000)
#endif
It works at 9600 but not at 115600, will try some more BAUD's later.

//L

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”