Jump to content

Arjan

Members
  • Posts

    12
  • Joined

  • Last visited

Personal Information

  • Flight Simulators
    DCS A10C
  • Location
    Netherlands
  • Interests
    Wood, Steel, Electronics, Software
  • Occupation
    Manager

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Updated version of DefaultFonts.txt, now including right and left arrow DefaultFonts.txt
  2. FIXED! Did not find the issue with the UTFTGLUE lib. The whole solution with MCUFriend and the Adafruit-GFX lib is also quite complicated. I prefer to just use the standard UTFT lib. The problem (documented on lots of threads here) is the font (Bigfont) has 95 characters, that's not enough for DCS-BIOS, it needs 255 characters. For that reason I modified the Bigfont font of the UTFT lib, to hold 255 cars, and added the missing characters like up-down arrow, bullseye, degree symbol etc... For this to work you have to download the attached DefaultFonts.txt file, rename it to DefaultFonts.c. Then rename the DefaultsFonts.c file in your UTFT library to DefaultFonts.bak and place the new file in the same subdir. Code: /* Tell DCS-BIOS to use a serial connection and use the default Arduino Serial library. This will work on the vast majority of Arduino-compatible boards, but you can get corrupted data if you have too many or too slow outputs (e.g. when you have multiple character displays), because the receive buffer can fill up if the sketch spends too much time updating them. If you can, use the IRQ Serial connection instead. File modified by Arjan Grootenboer */ #include <UTFT.h> // Declare which fonts we will be using extern uint8_t SmallFont[]; extern uint8_t BigFont[]; extern uint8_t SevenSegNumFont[]; extern uint8_t A10CFont[]; #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" UTFT myGLCD(ILI9486,38,39,40,41); void printChar(int row, int col, char* newValue) { int16_t x = 13 + col * 19; int16_t y = row * 32 + 6; myGLCD.print( newValue, CENTER, y ); } /* paste code snippets from the reference documentation here */ void onCduLine0Change(char* newValue) { printChar(0, 0, newValue); } DcsBios::StringBuffer<24> cduLine0Buffer(0x11c0, onCduLine0Change); void onCduLine1Change(char* newValue) { printChar(1, 0, newValue); } DcsBios::StringBuffer<24> cduLine1Buffer(0x11d8, onCduLine1Change); void onCduLine2Change(char* newValue) { printChar(2, 0, newValue); } DcsBios::StringBuffer<24> cduLine2Buffer(0x11f0, onCduLine2Change); void onCduLine3Change(char* newValue) { printChar(3, 0, newValue); } DcsBios::StringBuffer<24> cduLine3Buffer(0x1208, onCduLine3Change); void onCduLine4Change(char* newValue) { printChar( 4,0, newValue); } DcsBios::StringBuffer<24> cduLine4Buffer(0x1220, onCduLine4Change); void onCduLine5Change(char* newValue) { printChar(5,0, newValue); } DcsBios::StringBuffer<24> cduLine5Buffer(0x1238, onCduLine5Change); void onCduLine6Change(char* newValue) { printChar( 6, 0, newValue); } DcsBios::StringBuffer<24> cduLine6Buffer(0x1250, onCduLine6Change); void onCduLine7Change(char* newValue) { printChar(7, 0, newValue); } DcsBios::StringBuffer<24> cduLine7Buffer(0x1268, onCduLine7Change); void onCduLine8Change(char* newValue) { printChar( 8,0, newValue); } DcsBios::StringBuffer<24> cduLine8Buffer(0x1280, onCduLine8Change); void onCduLine9Change(char* newValue) { printChar( 9, 0, newValue); } DcsBios::StringBuffer<24> cduLine9Buffer(0x1298, onCduLine9Change); void setup() { DcsBios::setup(); myGLCD.InitLCD(); myGLCD.clrScr(); myGLCD.setColor(199,234,70); myGLCD.setFont(BigFont); } void loop() { DcsBios::loop(); } DefaultFonts.txt
  3. Hi Guys! I am trying to connect a 3.5" TFT / AT MEGA 2560 to DCS-BIOS. It's a cheap TFT with an ILI9486 driver. When I connect it with an example sketch and the UTFT Lib it works, using the following init: UTFT myGLCD(ILI9486,38,39,40,41); However when I try the code from robinmli (https://github.com/RobinMLi/DCS-CDU-Display), it won't work. The line: UTFTGLUE myGLCD(0x9488,A2,A1,A3,A4,A0); Is the problem, myGLCD(ILI9486, 38, 39, 40, 41); doesn't work and the screen turns white. Also 0 instead of "ILI9486" is not working. Anybody any ideas?
  4. It’s a masterpiece! How did you make the white / yellow / black danger part? Painted? Verzonden vanaf mijn iPhone met Tapatalk
  5. Are you using a Max7219? Is it working? Smart to start with the electronics, the most difficult part in my point of view...
  6. Helling, Thanks! That’s great advice! I will try that tomorrow. I have never seen a panel in real life [emoji1]. Verzonden vanaf mijn iPhone met Tapatalk
  7. Pictures of the first panel. Spend a lot of time working out the correct laser settings. The material is 3 mm acrylic, top sheet milk white and the sheet below opaque. Cutting acrylic: speed 10 mm / sec at 80..100 Power @ 60 Watt tube Engraving: speed 200 mm / sec at 50..50% Power @ 60 Watt tube Sanded the panels with Grid 240 sandpaper. Cleaning with an anti-static agent -> this is really important! Spray paint, 4 layers. Very light sanding grid 1000 in between.
  8. Hello, I am building an A10C simpit here in the Netherlands, what a fantastic forum you have here for that! I followed RomeoKilo, and a lot of other people sharing knowledge. Great!!! I have however a problem, i can't solve. As listed below i have 2 screens, a 27'' monitor in the front console displaying the MFD's and all the gauges, and a Beamer for the outside view. The Beamer however also display's the cockpit. How do i remove the cockpit view (except perhaps the HUD) from the "outside" view? I don't need the cockpit view as i have everything in the 1:1 sim Thanks! Arjan Setup: DCS A10C - 2 monitors, 1x 4K beamer and 1x a screen behind the front console, later expanding to 3 beamers and curved screen - Helios - DCS-BOIS / Arduino's 2650 - "Real" left / right and front consoles
  9. I found it :-))))). Checked the Helios process with Proces Monitor and msvcr120.dll was missing. This was fixed by installing vcredist_x86.exe. Yes, the x86 version, on a 64 bit Windows 10. I guess Helios was compiled on a 32 bit system.
  10. Did you find it? I have the same problem on a new computer. What you could check is Windows Update -> everything up to date, and if the vs redist package is available.
×
×
  • Create New...