AS-289R2 Thermal Printer shield control library
Dependents: AS-289R2_Hello-World AS-289R2_Hello-World-mbed-OS hybrid_image_as289r2 microbit_AS-289R2 ... more
Diff: AS289R2.cpp
- Revision:
- 7:f9b9162c7e9d
- Parent:
- 4:a2e0373a9cd1
- Child:
- 9:7f8acb87da7c
--- a/AS289R2.cpp Fri Feb 03 10:02:52 2017 +0000 +++ b/AS289R2.cpp Sat Mar 11 03:19:06 2017 +0000 @@ -1,5 +1,12 @@ -/* AS289R2 Library, for a Thermal Printer Shield AS-289R2 - * Copyright (c) 2016, Toyomasa Watarai +/** + ****************************************************************************** + * @file AS289R2.cpp + * @author Toyomasa Watarai + * @version V1.0.0 + * @date 11 March 2017 + * @brief AS289R2 class implementation + ****************************************************************************** + * @attention * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -198,7 +205,7 @@ _serial.putc(position); } -void AS289R2::setScript(uint32_t script) +void AS289R2::setScript(script_mode script) { _serial.putc(0x1B); _serial.putc(0x73);