public void sendTriState ( String codeWord ) { if ( transmitterPin != null ) { for ( int nRepeat = 0 ; nRepeat < repeatTransmit ; nRepeat ++ ) { for ( int i = 0 ; i < codeWord . length ( ) ; ++ i ) { switch ( codeWord . charAt ( i ) ) { case ' ' : this . sendT0 ( ) ; break ; case ' ' : this . sendTF ( ) ; break ; case ' ' : this . sendT1 ( ) ; break ; } } this . sendSync ( ) ; } transmitterPin . low ( ) ; } }
Sends a Code Word