Code:
//The setup function is called once at startup of the sketch
void setup()
{
Serial.begin(115200);
}
// The loop function is called in an endless loop
void loop()
{
for(uint8_t i=0;i<3;i++)
{
Serial.write(i);
delay(1000);
}
}
Code:
00 01 02 00 01 02 00 01 02 00 01 02
Code:
//The setup function is called once at startup of the sketch
void setup()
{
Serial.begin(115200);
// Swap serial port to continue on other uart.
Serial.swap();
}
// The loop function is called in an endless loop
void loop()
{
for(uint8_t i=0;i<3;i++)
{
Serial.write(i);
delay(1000);
}
}
Code:
01 02 01 02 01 02 01 02
Statistics: Posted by DhruvAcharya — Wed Nov 23, 2016 8:11 pm
Statistics: Posted by costaud — Mon Nov 03, 2014 11:20 pm
Statistics: Posted by muris — Mon Nov 03, 2014 3:29 am
Code:
#define FUNC_U0CTS 4
#define FUNC_U0RTS 4
void user_init(void)
{
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_U0CTS);//CONFIG MTCK PIN FUNC TO U0CTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, FUNC_U0RTS);//CONFIG MTDO PIN FUNC TO U0RTS
SET_PERI_REG_MASK(0x3ff00028 , BIT2);//SWAP PIN : U0TXD<==>U0RTS(MTDO) , U0RXD<==>U0CTS(MTCK)
......
}
Statistics: Posted by costaud — Mon Nov 03, 2014 3:26 am
Statistics: Posted by muris — Sun Nov 02, 2014 4:35 pm