Mac OS X ambilight
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Serial.h 456B

123456789101112131415161718192021222324
  1. //
  2. // Serial.h
  3. // DisplayBacklight
  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)sendData:(const char *)data withLength:(size_t)length;
  16. - (void)sendString:(NSString *)string;
  17. + (NSArray *)listSerialPorts;
  18. @end