*** Device Bluet a5c:21e8 - connected ***
manufacturer: Broadcom Corp
product: BCM20702A0
Serial: 5CF3708B497F
control callback (bluetooth) 1
0E 04 01 03 0C 00
control callback (bluetooth) 3
0E 04 01 24 0C 00
control callback (bluetooth) 4
0E 0A 01 09 10 00 7F 49 8B 70 F3 5C
control callback (bluetooth) 4
0E 0C 01 01 10 00 06 00 10 06 0F 00 0E 22
control callback (bluetooth) 6
0E 04 01 45 0C 00
control callback (bluetooth) 7
0E 04 01 01 0C 00
control callback (bluetooth) 8
0F 04 00 01 01 04
2F FF 01 D0 7A BE 6A 6A D4 01 00 3C 04 08 E7 62
C3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
2F FF 01 D0 7A BE 6A 6A D4 01 00 3C 04 08 E7 62
C2 0C 09 58 42 52 2D 34 39 58 38 30 30 45 09 03
0A 11 0C 11 0E 11 00 12 01 05 01 07 03 3D 07 64
06 FF 0F 00 00 01 64 02 0A 07 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
@mjs513 - I hope you don't mind I did a little updating (mostly comments) and remove compiler warning on Packman... I removed the ili9341_due_config.h file as I commented out the whole file and it still built.
I also put in comments talking about currently requiring libraries from my github. Also mentioned the which IO pins were used...
Also to let people know that the screen is actually working, I put a message on the screen saying waiting for joystick to connect.
Kurt
@mjs513 - yes and no... I have loaded multiple times and have not seen that.... but I am trying to get the display to work when dc is not on cs pin, and having some issues.
Interesting, could just be something with my T4.
Good luck with the making change over, sounds like its going to be a bear.
@milan7 - Not sure what you are asking. If I remember correctly you are using one of the RII BT keyboards?
To get it to connect you need to compile in the version of Bluetooth controller object that does the pairing:
BluetoothController bluet(myusb, true, "0000"); // Version does pairing to device
Then when the program runs, you should hit the Bluetooth button and then hopefully be able to hit the PIN number: 0000 <enter>
And hopefully then it should bind.
Again Note: At some point I would love to clean up some of this stuff and to not necessarily have to build in the pairing version of constructor, but later be able to do something (like enter command) or button on unit or... Which would call off to start a pairing. Then it should also output messages like waiting for you to enter your keycode.... Also maybe allow you to type in what keycode you want...
But until then ...
#define __C64__ 1
// Connection konfiguration of ILI9341 LCD TFT
#if defined(__MK66FX1M0__)
[COLOR="#FF0000"]#if defined(__C64__)
#define SCK 14
#define MISO 39
#define MOSI 28
#define TFT_RST 255
#define TFT_DC 20
#define TFT_CS 21
[/COLOR]#else
#define TFT_RST 8
#define TFT_DC 9
#define TFT_CS 10
#endif
#elif defined(__IMXRT1052__) || defined(__IMXRT1062__)
// On Teensy 4 beta with Paul's breakout out:
// Using pins (MOSI, MISO, SCK which are labeled on Audio board breakout location
// which are not in the Normal processor positions
// Also DC=10(CS), CS=9(BCLK) and RST 23(MCLK)
#define TFT_RST 23
#define TFT_DC 10
#define TFT_CS 9
#else
#error "This example App will only work with Teensy 3.6 or Teensy 4."
#endif
[COLOR="#FF0000"]#if defined(__C64__)
ILI9341_t3n tft = ILI9341_t3n(TFT_CS, TFT_DC, TFT_RST, MOSI, SCK, MISO, &SPIN );
[/COLOR]#else
ILI9341_t3n tft = ILI9341_t3n(TFT_CS, TFT_DC, TFT_RST);
#endif
#if defined(__C64__)
SPIN.setMOSI(MOSI);
SPIN.setMISO(MISO);
SPIN.setSCK(SCK);
#endif
#if defined(__C64__)
tft.setRotation(0); // 0
#else
tft.setRotation(2); // 180
#endif
Actually it was originally designed for buttons but he had a modification to allow to be used with a SNES controller. Was thinking at some point to change it to use the joystick . Think I mentioned that a bunch of posts ago.Isn't this a Joystick game … buttons? - I compiled at 120 MHz ... doesn't help me play, even speed=SLOW., though I do okay in DEMO mode
// Calculate speed
s->_speed += (GetSpeed(s)*0.4);
drawNumber(long long_num,int poX, int poY, int font),
drawNumber(long long_num,int poX, int poY),
drawFloat(float floatNumber,int decimal,int poX, int poY, int font),
drawFloat(float floatNumber,int decimal,int poX, int poY),
// Handle char arrays
drawString(const char *string, int poX, int poY, int font),
drawString(const char *string, int poX, int poY),
drawCentreString(const char *string, int dX, int poY, int font), // Deprecated, use setTextDatum() and drawString()
drawRightString(const char *string, int dX, int poY, int font), // Deprecated, use setTextDatum() and drawString()
// Handle String type
drawString(const String& string, int poX, int poY, int font),
drawString(const String& string, int poX, int poY),
drawCentreString(const String& string, int dX, int poY, int font), // Deprecated, use setTextDatum() and drawString()
drawRightString(const String& string, int dX, int poY, int font); // Deprecated, use setTextDatum() and drawString()
Cool. Amazing how one thing leads to anotherHi @defragster and @mjs513 and ...
I put up some responses to ili9341_t3n changes up in my earlier thread on this library: https://forum.pjrc.com/threads/3875..._t3-library-(ILI9341_t3n)?p=201644#post201644
Congratulations, that must have been a lot of worked and headaches to get it going.Note: I pushed up a change to my ili9341_t3n library to make it run without having DC pin be the hardware CS pin. It won't be as fast, but it sure is faster than not working
I hope so too. Think he is real busy about now... I just ordered by Beta breakout board - just to test USB design and things. Doing a redesign for the new one.I may soon push the T4 WIP branches back into the master branch, especially if Paul pulls in the PR request to the USB Host code that supports Bluetooth.
bool bShowVals = false;
void KeyPadLoop() {
buttons = joystick1.getButtons();
if (bShowVals && buttons > 0 ) {
Serial.print( buttons, HEX );
Serial.print( "\t" );
Serial.println(buttons);
}
// …
if (buttons == 512) { // right trigger #1
bShowVals = !bShowVals;
delay(200); //debounce
}
bool bShowVals = true;
uint32_t buttonsLast = 0;
void KeyPadLoop() {
buttons = joystick1.getButtons();
if (bShowVals && buttons > 0 ) {
if ( 0 == buttonsLast ) {
Serial.println( "Press right trigger 1 to toggle this printing.");
}
else if ( buttonsLast != buttons ) {
Serial.print( buttons, HEX );
Serial.print( "\t" );
Serial.println(buttons);
}
buttonsLast = buttons;
}
//...