The documents and libraries show the ability to hook up to SPI.
Example: https://forum.arduino.cc/t/adxl345-wiring-issue-on-spi/257756
Or page 15 of their PDF:...
Type: Posts; User: KurtE
The documents and libraries show the ability to hook up to SPI.
Example: https://forum.arduino.cc/t/adxl345-wiring-issue-on-spi/257756
Or page 15 of their PDF:...
Warning I have not used many of the accelerometers, although I do have a few of them sitting around here somewhere... My desk and office areas organization is not as it should be.
But for example...
Boy just #ifdef out all my stuff :D ;)
Actually at some point if we really want to kitchen sink it, we should also for the T4.1 add the CSI mode stuff.
@mjs513 - I hacked up the example, mainly just the callback:
void frame_callback() {
//Serial.printf("FCB: %d %d\n", tft.frameCount(), tft.subFrameCount());
uint32_t frameCount =...
For the most part I think it is an issue with the way the test is doing stuff...
So I may not hold up stuff on this. I am going to change the test callback to only do stuff for shutting down...
Sounds good, I am assuming that the two others I ordered from Sparkfun, scheduled to arrive Sat at our PMB, which usually means Monday... Will be Mono as well.
As for the hang, I am pretty sure...
LC goes in the 3 branch
Morning @mjs513.... Yep I need to look more at the shutdown... It did not go all of the way through... Which is why I added all of those outputs, back in the ILI coding of it. Probably something...
They both have the same debug code... My last push up turned of the DMA test code in the ST7735/89 code. Let me know if that fixes it for you. Works on mine.
I just pushed up change for one fix for 240x240...
I can start and stop, sometimes a few times, but sometimes it hangs, so I need to debug more of that.
@defragster - not sure why not building? Obviously only define one of the two displays... Actually in my current version one of 3...
Note, I should probably hack it up some more for which ST7789......
@mjs513 which one? Hard to say. Maybe depends on what the power source is. If ac might just use wallwart if battery depends, when I was playing with nimh or lifo for 6v servos I used different......
Just pushed up I think fix for T4.x into the ST7735_t3 branch I mentioned... Not sure if anyone else wants to try it before I do the PR?
Yep - often times it is the simple things: Code came from ILI9341: 320x240:
So on those I need to split up the DMA into 3 chunks: So number of Words to write per DMA: 320*240/3 = 25600
So...
I have not used those before, some of the others I have used that looks similar:
https://www.digikey.com/en/products/detail/murata-power-solutions-inc/OKI-78SR-5-1-5-W36-C/2259781
Or a similar one...
Looks like I may have a bit more work to do on ST7735 on T4.x...
24462
Looks like you are having fun.
I just finished this round of ST7735_t3/89 updates on T3.5 and T3.6... To allow them also to get callbacks on full frames and half frames.
Note I rebase -i the...
One like: https://smile.amazon.com/gp/product/B081Q79X2F ? Mine arrived yesterday, might pick up today.
Right now editing the T3.6/T3.5 code. For Callbacks.
Pushed up some changes to the ST7735 stuff, which helps so far with starting and stopping async...
Test sketch I modified from my ILI9341 sketch...
Tomorrow will check it out on T3.6 to make...
Sorry guys, been sort of distracted with other things today. Like trying to help get Lynxmotion LSS servos to talk to T4.1...
Will be interesting still to figure out what the differences are...
@all I just pushed up a new st7735_t3 branch: https://github.com/KurtE/ST7735_t3/tree/t4x_dma_no_copy
With the WIP code, that appears like it might be working on Micromod with the V command.
...
I will probably testing soon, had a few diversions this morning.
Like, my updates to FlexIO was incomplete, I was in the process of saying there are 8 timers and shifters not just 4... But some of...
There is a variety of ways, also several topics on this:
Some of this is sort of mentioned on the Teensy 4.1 product page: https://www.pjrc.com/store/teensy41.html#software
a) you could use...
Yep - Will hopefully figure out what the syncing up is...
Yesterday, I made a first pass of code editing to ST7735/89 DMA code. Need to start testing.
First need more coffee, and head to...
I am looking to update the ST77xx code to allow the callbacks. But it looks like this still has my older variety of updateScreenAsync code for the IMXRT.
Earlier on I was frustrated, with the...
Thanks @mjs513
Or do one or both of us need to integrate in code with ST7735_t3? Will take a quick look.
Thinking of ILI9341, has anyone purchased the Sparkfun Input and display Carrier...
Just an FYI - I just pushed up a branch with this code, that works pretty well with the ILI9341 display. (Don't have the calls in ST7735 ... Yet).
Pushed up a PR, so people can play... May want to...
Note: I am doing some outside nice day activities, but in the process now of adding a Video mode...
That is I am setting up to do DMA, plus turn on the Async updates in continuous mode, with...
@Paul - There appears to be an issue in the imxrt.h file... Not specific to MicroMod.
Not sure best way to fix as associated with the GPIO structures...
That is we have:
// 12.5.1: page 961...
Hi Mike, yep as I mentioned in the commit - it sort of walks through the screen a couple of times and then settles.
Will investigate. Right now playing with speeding up the VSYNC interrupt to see...
@mjs513 I am creating another branch working on DMA stuff (later for PR)...
Looks like made similar changes to what you did since then in DMA callback in sketch (last use of that buffer)... Missed...
Just an FYI- These days mostly avoid these issues of compiling for wrong board, as mostly work/build within sublime text and most of the time now using projects.
So for example in the test3 test...
@mjs513 Not a problem...
Question, as I start testing a couple of the ideas from yesterday for continuous DMA, should I work with testv2 or move on to testv3?
Also question to self (and maybe...
Morning all,
Not fully awake yet, nor had coffee,
We need to go through and maybe remove several of those buffers. Especially the uint16_t one that may not be used anymore as we don't convert...
:D looks like you beat me to it! :D
At times still wonder if we should cleanup something like it, sort of like DMAChannel such that sketches who just want to use something like an extra serial...
@Paul - Taking a quick look through your FlexIO configuration and DMA. It is kooks like Greek to me :D
The first thing I wonder and may try. It looks like you are using Shifter 3?
Then I...
:D - Yep - decided to go ahead and merge it in as it works better than before and wanted to do it before it became harder to merge.
That branch relies on my USBHost_t36 library updates. Which is still in waiting on a Pull Request back to the main one.
It is off of my Fork/Branch:...
@mjs513,
I see a few different options:
a) don't disable the DMA... In theory if I am totally in sink, the next DMA operation (when PCLK) triggers should be at the start of the next frame. May...
It is in my library I was working on long ago... Maybe to integrate some parts at some point.
https://github.com/KurtE/FlexIO_t4
I believe it is in the flexSerial.cpp
Playing a little more, I brought over my Frame info function to get an idea of what maybe is different... Pushed up to my dma_merge_fixes.
Here is information printed when SPARKFUN:
converged!...
Paul,
I will read more of your comments in a bit... Other distractions going on.
With VSync - I was wondering if I was starting too late, or maybe VSync interrupt not being serviced fast...
@mjs513 sorry I have been a bit distracted today. Still hacking DMA...
Pushed up branch dma_merge_fixes which updated the DMA code not to hang.
Plus added a command 'D' which does like 'd' except...
@all just pushed the WIP stuff for DMA up to new branch dma_full_sensor
Still not fully working with the full frame 324x244 things are out of sync... Will play a little more, will pull most out...
:o ;) - That way I can pack up my bags and go home :D
Will stash my changes in holding area and probably expunge.
Edit: Forgot to mention, it is working on my ILI9341...
Maybe Reset Pin? I will switch back over.
Morning All,
Will have to play... I did/do have DMA with FlexIO when making a Serial port, for doing RX in the background. May have to compare.
Also once FlexIO is working wonder if we/I...
I am playing with the DMA code some more. I put in new command 'f' - read in one frame using DMA and then output it...
It verified that the data in the frame is not coming back correctly. So...
@mjs513 yes probably the same, simply update some of the names and the like
I pushed the changes up to github in my char_bounds branch, which is now part of the current Pull request back to Paul:...
I have a version that builds with the writeRect8BPP (as well as 4 2 1 and N)
So may need to grab adafruit display and try it.