mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
lcd: Renamed 'i2clcd' library to 'lcd'
All other upm library directories match their corresponding library name, the i2clcd was an outlier which caused problems for CMake and testing. * Replaced usage of i2clcd with lcd * Renamed source files and examples * Updated examples to use correct class * Updated documentation where necessary (left changelog sections) Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -198,8 +198,8 @@ add_example_with_path(Jhd1313m1_lcdSample jhd1313m1 jhd1313m1)
|
||||
add_example_with_path(Jhd1313m1Sample jhd1313m1 jhd1313m1)
|
||||
add_example_with_path(Lcm1602_i2cSample lcm1602 lcm1602)
|
||||
add_example_with_path(Lcm1602_parallelSample lcm1602 lcm1602)
|
||||
add_example_with_path(SSD1308_oledSample lcd i2clcd)
|
||||
add_example_with_path(SSD1327_oledSample lcd i2clcd)
|
||||
add_example_with_path(SSD1308_oledSample lcd lcd)
|
||||
add_example_with_path(SSD1327_oledSample lcd lcd)
|
||||
add_example_multiple_jars(BME280_Example bmp280 "bmp280;interfaces")
|
||||
|
||||
if(SWIG_VERSION VERSION_GREATER 3.0.8)
|
||||
|
@ -22,13 +22,13 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
public class I2CLCD_EBOLEDSample {
|
||||
public class LCD_EBOLEDSample {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
|
||||
// Instantiate an Edison Block OLED using default values
|
||||
upm_i2clcd.EBOLED lcd = new upm_i2clcd.EBOLED();
|
||||
upm_lcd.EBOLED lcd = new upm_lcd.EBOLED();
|
||||
|
||||
lcd.clear();
|
||||
lcd.setCursor(10, 15);
|
@ -22,7 +22,7 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
public class I2CLCD_SSD1306Sample {
|
||||
public class LCD_SSD1306Sample {
|
||||
|
||||
static private final int[] intel_logo = new int[]{
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
@ -85,7 +85,7 @@ public class I2CLCD_SSD1306Sample {
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
|
||||
upm_i2clcd.SSD1306 lcd = new upm_i2clcd.SSD1306(0x0, 0x3D);
|
||||
upm_lcd.SSD1306 lcd = new upm_lcd.SSD1306(0x0, 0x3D);
|
||||
|
||||
byte[] image = new byte[intel_logo.length];
|
||||
for (int i = 0; i < intel_logo.length; i++)
|
@ -76,7 +76,7 @@ public class SSD1308_oledSample {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
upm_i2clcd.SSD1308 lcd = new upm_i2clcd.SSD1308(0);
|
||||
upm_lcd.SSD1308 lcd = new upm_lcd.SSD1308(0);
|
||||
|
||||
byte[] image = new byte[IntelLogo.length];
|
||||
for (int i = 0; i < IntelLogo.length; i++)
|
||||
|
@ -111,7 +111,7 @@ public class SSD1327_oledSample {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
upm_i2clcd.SSD1327 lcd = new upm_i2clcd.SSD1327(0);
|
||||
upm_lcd.SSD1327 lcd = new upm_lcd.SSD1327(0);
|
||||
|
||||
// If you don't set the display to be white, the seeed logo will appear
|
||||
// jagged
|
||||
|
Reference in New Issue
Block a user