stm32 chips only support 400khz max i2c.
- philvr likes this
![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
Community Stats
#52594 can i set digital port as input
now take a breath and read your error.
'Microsoft.SPOT.Hardware.InputPort' does not contain a constructor that takes 2 arguments
InputPort Inport1 = new InputPort(Pins.GPIO_PIN_D13, false); has 2 arguments, and the error saiys it doesent want 2.
it wants 3.
public InputPort(Cpu.Pin portId, bool glitchFilter, Port.ResistorMode resistor);
#51827 Debugging Target not in an initialized state: rebooting...
[font="arial, helvetica, sans-serif;"]SecretLabs.NETMF.Hardware.Netduino is for all gen2 boards, the other for the gen1.[/font] [font="arial, helvetica, sans-serif;"]they changed the naming for the gen2 boards so its in line, all have the same namespace there (normal and plus - and the ones that will follow sometime too)[/font]
#51707 Where is the SerialPort?
#48297 PWM freezing due to PWMChannels mapping
i dont think the netduino 1 has pwm on the led. also only 4 pwm channs (5,6,9,10);
so iam not suprised your code crashes
http://www.netduino....duino/specs.htm
#47713 Building a Set of Netduino 2 & Netduino 2 Plus Tutorials to share
a tutorial of how to convert 4.1 code to 4.2 (the different pwm, analog.. constructors) would be great. most tuts are for 4.1
#47536 Adding CANbus support
i dont think that will work, not only that you have to write the native drivers yourself, the pins it nuses have to be broken out also.
id go with a spi <> canbus ic
#47294 SB with NGO much slower then Arduino
yeah i can imagine that beein very slow. from what i know shieldbase uses uart (serial) to send the commands, and you send a lot of it, theres also error checking ans stuff i dont even know of i guess
next: netmf is interpreted, and its way slower than arduino, way way way.
the benefit for sure it the nice ide and a managed and beautiful language, more ram and flash
#47075 System.Exception during Debug.Print
i guess its: Debug.Print(new string(System.Text.Encoding.UTF8.GetChars(buffer)));
when you get the chars, it expects that the byte data is correct, now with serial the chances are big that it isent (my experience so far)
if you send the data from a computer, print out there the byte data, and also on the netduino ( Debug.Print(buffer[0]); .. in a loop till buffer lenght) and compare them. it happened a lot for the data gets shifted and never syncronizes again
iam using cobs as packetframe, since that it never happened again
#46359 Firmware v 4.3
you can either flash the duino with netmf 4.3 firmware or set the output in vs2012 to 4.2 (on project -> settings)
edit: you find usefull information in the forums pinned on top. 4.3 firmware is here: http://forums.netdui...re-and-drivers/
#45773 Did I brick my Mini?
you need a max232 to flash new firmware, the com1 is 12 volts, its not a good idea to connect your ftdi cable to there. also, dont erase with 5 volts, that cant be good, use max 3.3v (i dont think its damaged, but it might get damaged if you do that)
or hook it up to your computers comput.
best is you read the guid again ... very carefully ...
http://forums.netdui...y-instructions/
#45559 Netduino Plus with arduino gps gsm with SIM548C module?
2) why when i type the "SerialPort serialPort = new SerialPort("COM1", 4800, Parity.None, 8, StopBits.One);", there are red line under the SerialPort.
you have to add a reference: Microsoft.SPOT.Hardware.SerialPort maybe also system.io
and than using System.IO.Ports;
than your serialports will work.
#45223 Convert a string to an integer
Int32 yourInt = Int32.Parse("122");
doesent work for single/
edit: baxter is right, its working for double, but for Single i dont have parse
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |