5 years ago.

Why when BusOut.read() gives 1 int ahead of what i write using BusOut.write()?

With my BusOut Salidas(D0,D1,D2,D3,D4,D5,D6,D7) I want a 17 in my BusOut

Salidas.write(0x11); int salidas=Salidas.read(); pc.printf("Your output is: %i \n", salidas);

but I get a 19 in my printing, Does anyone knows why?

Question relating to:

Fork of the official mbed C/C++ SDK provides the software platform and libraries to build your applications. The fork has the documentation converted to Doxygen format

How do you define the pin "D1"? Could you show the circuits which is connected to pin D1? If you use low registance, 2k ohm or less, register for pulling up pint "D1", D1 pin cannot sink enough current and the voltage on D1 pin may be detected as High(1).

posted by Yoichi Hamazaki 16 Mar 2015
Be the first to answer this question.