This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testOptional() { | |
assertEquals(Optional.of( | |
new AClass()) | |
.map(AClass::getSomeObject) | |
.map(BClass::getSomeText) | |
.map(String::trim) | |
.orElse(""), ""); | |
assertEquals(Optional.of( | |
new AClass(new BClass())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************/ | |
/*! | |
@file readntag203.pde | |
@author KTOWN (Adafruit Industries) | |
@license BSD (see license.txt) | |
This example will wait for any NTAG203 or NTAG213 card or tag, | |
and will attempt to read from it. | |
This is an example sketch for the Adafruit PN532 NFC/RFID breakout boards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************** | |
This is a library for our optical Fingerprint sensor | |
Designed specifically to work with the Adafruit BMP085 Breakout | |
----> http://www.adafruit.com/products/751 | |
These displays use TTL Serial to communicate, 2 pins are required to | |
interface | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define OLED_DC 6 | |
#define OLED_CS 7 | |
#define OLED_RESET 8 | |
#define PIN_ENCODER_A 4 //Micro pin 4 - encoder A | |
#define PIN_ENCODER_B 6 |
NewerOlder