@mjs513 - glad you have it working! Will have to play with it some more.
(All) But I am wondering how/where I might use it on a normal Teensy, where I don't have external memory and I am not using eLCD?
That is are there examples on how one...
Have to swap the values for the OUT_LRC register - didn;t register (pardon the pun) that this was different than PXP_OUT_PS_LRC. PXP_OUT_LRC appears to set the display LRC, hence the need for:
if(r == 0 || r == 2) {...
Got it !!! Found it by accident:
solution:
void pxp_rotation(int r) {
if(!pxpStarted) {
Serial.println("You forgot to start PXP, use 's' to start.....");
} else {
memset((uint8_t *)d_fb, 0, sizeof_d_fb);
PXP_rotate_position(0)...
Thanks for joining the fray here. Right now I am using QVGA with a ILI9341 so using 2 full size buffers:
DMAMEM uint16_t s_fb[320*240] __attribute__ ((aligned (64)));
uint16_t d_fb[320*240] __attribute__ ((aligned (64)));
Right now I have just...
Not an expert on this by far - was torture just trying to get rotation semi working. I do know that you can set up the source input buffer as RG565 and then setup the out buffer to RGB888 and it should convert. No clue how to actually try it...
Made a little progress - but out image is always a square. Kind of giving up on rotations - ps it easier to set the display to do the rotation if thats all you are doing on an image - probably not good to do it with video unless display doesn't...
Trying to figure out how PXP works but it is giving me a headache - I posted something on the PXP thread. Trying to figure out how scaling works to say downsize an image. But all in good time - examples are few and far in between
Followed instructions in topic underneath and now have two compass sensors running simultaneously on two I2C busses on a Teensy 4.1
https://forum.arduino.cc/t/how-to-use-i2c-sda2-and-scl2-on-stm32f103c8tb-with-my-compass-hmc5883l/1001527/8
Here's the problem
For Rotation 0 - seems to be working but image is not centering as specified in the writeRect function
Rotation 1 - notice it draws it on the top have of the screen as what looks like a wrapped image:
Rotation 2 - see...
Know this is more than a year later but started playing with the PXP library using a OV5640 camera. The basic setup is:
1. ILI9488 on SPI using ILI9488_t3 library
2. Framesize = 480x320 (HXGA) yes this works.
3. Framebuffers setup in the...
Just realized pin AD_B1_03 isn't routed so the board doesn't have SPDIF_IN... could we add that to the list for gen5? With Kurt's additions that would complete all of the AD_B1_XX pins which make up consecutive halves of GPIO1 / FlexIO3.
Well it's pretty much finished. Modified the SDRAM Dev board /RD signal to use manual pulse generation. Bus speeds are about the same as the T4.1:D The FlexIO /RD signal generation seems to have been the main issue for stability. It kind of makes...
You are going to probably have to use 2 separate Wire buses since both share the same I2C address unless your specific module has a way to change its address.
As for a library you are going to have to point to the exact library you are using...
@KurtE
Been playing with your latest changes and testing on with the 2640 and 5640.
With the 2640 jpeg seems to be problematic maybe will get a good image 1 in 10 times or so. With the Adafrut 5640 seems to be working like a charm - even able...
Quick update on using the CSI setup to try to read in Jpeg images in from OV2640 and later OV5640 on Teensy 4.1.
I tried several different ways to make it work within CSI subsystem. I was tried several different ways to turn off using their DMA...
Question/Wondering: Currently with our JPEG input code, we are using some pretty primitive code to detect the
end of the JPEG stream (0xff followed by 0xd9). That is we are working without DMA, and manually scan the new data
coming in for this...
Thanks! I eventually got it working using this code here.
Now I need to try and pair the two modules and allow for data communication, I will let you know how this goes.
#include <SoftwareSerial.h>
SoftwareSerial BT(0, 1); // RX (pin 0) | TX...
Sounds like you need to add the debounce function to setup. From the keypad library.
// Minimum debounceTime is 1 mS. Any lower *will* slow down the loop().
void Keypad::setDebounceTime(uint debounce) {
debounce<1 ? debounceTime=1 ...
Found this lib to determing peaks in sensor data
https://github.com/leandcesar/PeakDetection
Disclaimer - never used it.
They do reference this stackflow question/response...
You could try using attaching an interrupt to pin A9 - never tried it.
https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/
or...
Its hard to tell without seeing your code, best thing to do is try a simple sketch with just bluetooth attached and test. One gotcha in the past is baudrate. The baudrate of the HC module should match what you have set for the serial port you...
C:\Users\Marc>echo portlabel=hid#vid_16c0&pid_0478
portlabel=hid#vid_16c0
'pid_0478' is not recognized as an internal or external command,
operable program or batch file.
You will need to escape that string before running it as a Windows command...
Thanks @jmarsh and @mjs513
Quick note on the main CSI pins, (AD_B1_xx) pins, that are used on Teensy 4.1. They are also FlexIO pins but on FlexIO3, which does not have DMA, so we have not tried using it... But could especially, if we do it...
I haven't done it with CSI, I used FlexIO instead with a shifter register in match store mode to detect the ending sequence.
It sounds like the same situation as with LCDIF: the reference doc says you can perform the DMA "manually" but gives no...
Wondering has anyone tried using the CSI subsystem without using their built in DMA?
Two different ways, I might find it interesting:
a) Reading in JPEG. Yesterday I was sort of able to get it to maybe read in one JPEG using DMA, I think I...
I think which new pins could/should be added to support has been shown now in a few threads including:
Question, what do you mean by complete? That is I have not seen what I would consider a complete one for DB4 or DB4.5. That is one
that...
I really wish the MTP support libraries would get folded into the Teensy base.
You need to download KurtE or WMXZ's MTP support libraries from:
https://github.com/WMXZ-EU/MTP_t4
https://github.com/KurtE/MTP_Teensy
Then you need to build your...
I received my 74LVC245 chips and had some fun wiring this rat's nest up:
This took care of the bad image when loading from FLASHMEM. Both FLASHMEM and SDRAM are working using 8-bit DMA. The image is correct and repeatable at 20MHz. I only...
Was playing around jpegdec library and did a comparison of using PROGMEM vs SDRAM (running at 198Mhz)
FLash TEST
full sized decode in 28350 us
half sized decode in 21260 us
quarter sized decode in 7320 us
eighth sized decode in 6104 us
SDRAM...
Quick updates on CSI code:
I now have more of it working with T4.1 and CSI running in VGA size, with PSRAM for frame buffer.
I have more of it working now. With the VGA sketch, using OV7675 camera PSRAM, where f command is working, as is m and...
Have the SDRAM board wired up to the ER-TFT101-1 display. DMA is working on it as well as the MicroMod, sort of! This is the test sketch I am using modified to include SDRAM usage:
#include "RA8876_t3.h"
#include "SDRAM_t4.h"
#include...
Sorry, I did not go all the way up on the SS to those pins... I have now...
Exactly.
Pushed up current version to fork of defragsters github project and issued PR
https://github.com/Defragster/EVKB_1060/pull/1
Thanks, @mjs513 (and others), I updated again the dogbone... excel document all of the LCD pins on the right hand side of the
board were filled in. I think it should look like:
Will send the document back to you and/or could try to do PR with...
@KurtE the dev board has all the eCLDIF pins exposed. Starting from B0_00 to B1_13 I believe.
I posted here a few weeks back that I got it working on a 24 bit display with SDRAM.
True, I have not really studied the LCDIF as I don't think we have had any boards that have enough pins exported to use. I might take a look
and see if we added the 3 or 5 pins mentioned in yesterdays post about CSI... If both would be covered...
That was an interesting forum post especially if you read all the way through it. The fix they recommended was basically to change both BCMRX registers to 0x81...
@mjs513, looks interesting. Wonder what the differences are from the DMA and non-dma? Other than the obvious. Like when we are not using DMA operation, the new data is written to the cache, and only later, when necessary, it flushes it out to...
I find it odd that SDRAM is not working well with FlexIO & DMA..
On the original version of the devboard, @Dogbone06 has just standard T4.1 PSRAM, and I was able to use a frame buffer in there with my Micromod 8080 library without any issues...
We finally have DMA working properly on the MicroMod and presumably the SDRAM Dev Board (not tested yet). My MicroMod quit while testing the 8080 mode for the ER-TFTM101-1 display. Had to reposition the MCU board in the connector. It's working...