Simple RGB LED controller for Mac OS X
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

1234567891011121314151617181920212223
  1. //
  2. // Serial.h
  3. // CaseLights
  4. //
  5. // Created by Thomas Buck on 14.12.15.
  6. // Copyright © 2015 xythobuz. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface Serial : NSObject
  10. @property (strong) NSString *portName;
  11. - (NSInteger)openPort;
  12. - (void)closePort;
  13. - (BOOL)isOpen;
  14. - (BOOL)hasData;
  15. - (void)sendString:(NSString *)string;
  16. + (NSArray *)listSerialPorts;
  17. @end