Hi, at 4.2 I used the following too lines:
new SPI.Configuration((Cpu.Pin)GHI.Hardware.EMX.Pin.IO46, false, 0, 0, false, true, 800, SPI.SPI_module.SPI1);
new SPI.Configuration((Cpu.Pin)GHI.Hardware.EMX.Pin.IO18, false, 0, 0, false, true, 800, SPI.SPI_module.SPI2);
But now there is this Cpu.Pin.GPIO_Pin0 to - Cpu.Pin.GPIO_Pin15
so what are IO46 and 18 on the new framework?
And on the same subject, on 4.2 I had GTI.InterruptInput input
How is it called now?
Thanks
@ andre.m - The constructor is not the issue, the issue is what happened to the GPIO pins, why I had 40 of them at 4.2 and now only 15?? Give me some schematic, or you can help me with the answer of what to put there instead?
Sprigo
April 20, 2016, 12:13pm
3
bioengproject:
Give me some schematic
Have you tried looking in the Catalog section for the board you are using?
@ Sprigo - I have been wondering, how is it possible that the framework changes the number of pins available at the board?
Sprigo
April 20, 2016, 12:19pm
5
It doesn’t but it might change the names.
I don’t get it, there are plenty of engineers here, how come that no one can give me an answer?
Seriously GHI.
Ok, checked the schematics, Is it possible that IO46 is now pin 13? and 18 is now pin 11?
Can someone at least confirm that?
Sprigo
April 20, 2016, 12:38pm
7
new SPI.Configuration(EMX.IO46, false, 0, 0, false, true, 800, SPI.SPI_module.SPI1);
new SPI.Configuration(EMX.IO18, false, 0, 0, false, true, 800, SPI.SPI_module.SPI2);
You will need to add a reference GHI.Pins
Simples.