Recherche prog écran O led pour DCS

Fabrication de cockpit et divers ( palonnier , panels ..) c est ICI
Avatar de l’utilisateur

Topic author
Hombre
Apprenti-Mécano
Apprenti-Mécano
Messages : 311
Inscription : 26 juin 2014

Recherche prog écran O led pour DCS

#1

Message par Hombre »

Bonjour,

J'aimerais essayer d'intégrer ou tester un affichage O led 128*32 0.91" un affichage quelconque mais pour DCS.
Quelqu'un aurait un exemple ou bien une aide pour ce type d'affichage.

Cordialement
Avatar de l’utilisateur

Topic author
Hombre
Apprenti-Mécano
Apprenti-Mécano
Messages : 311
Inscription : 26 juin 2014

Re: Recherche prog écran O led pour DCS

#2

Message par Hombre »

Bonjour,

J'ai réussi à écrire une phrase. :Jumpy:
[#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>



// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(OLED_RESET);


void setup() {

// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
// Clear the buffer
display.clearDisplay();


// Show initial display buffer contents on the screen --
// the library initializes this with an Adafruit splash screen.
display.display();

delay(1000);
}

void loop() {
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(0,10);
display.println("Hello all");
display.display();
}*]


Mais j'aimerais partir de cette fonction pour le Mach.

[void onSpeedMachChange(unsigned int newValue) {
/* your code here */
}
DcsBios::IntegerBuffer speedMachBuffer(0x6116, 0xffff, 0, onSpeedMachChange);*]

je sais quoi mettre dedans pour des afficheurs 7 segments mais la je bloque.

Un SACHANT??????? :cheer:
Répondre

Revenir à « Cockpit & mod perso »