Skip to content

Commit 8f9a708

Browse files
committed
remove whitespace
1 parent 8818fa9 commit 8f9a708

17 files changed

+38
-38
lines changed

src/modm/driver/display/ili9341_impl.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ modm::Ili9341<Interface, Reset, RB>::initialize()
5252
RF_CALL(this->writeCommand(Command::VComCtrl2, 0xb7));
5353
// constexpr uint8_t pumpRatioCtrl[] { 0x20 };
5454
RF_CALL(this->writeCommand(Command::PixelFormatSet, 0x55));
55-
55+
5656
MODM_INIT_BUFFER({0x00, 0x1a})
5757
RF_CALL(this->writeCommand(Command::FrameCtrlNormalMode, buff_cmd8, 2));
5858

@@ -247,7 +247,7 @@ modm::Ili9341<Interface, Reset, RB>::writeBuffer(
247247

248248
if constexpr(std::max(RB::W, RB::H) > 240) {
249249
if(R::W > this->getWidth() ) {
250-
// writeBuffer(buffer, origin) can handle off-canvas drawing
250+
// writeBuffer(buffer, origin) can handle off-canvas drawing
251251
RF_CALL(writeBuffer(buffer, {0, 0}));
252252
RF_RETURN();
253253
}
@@ -272,7 +272,7 @@ modm::Ili9341<Interface, Reset, RB>::writeBuffer(
272272
RF_BEGIN();
273273

274274
p.intersection = this->getIntersection(Rectangle(origin, R::asPoint()));
275-
275+
276276
RF_CALL(setClipping(p.intersection));
277277
// FIXME involve p.intersection
278278
RF_CALL(this->writeData(this->getPlainBuffer(buffer), p.intersection.getPixels() * 2));
@@ -298,7 +298,7 @@ modm::Ili9341<Interface, Reset, RB>::writeBuffer(
298298
{
299299
// Convert tile
300300
p.bufferRgb565.writeBuffer(buffer, -p.bufferRgb565_pos);
301-
301+
302302
// Transfer tile
303303
RF_CALL(writeBuffer(p.bufferRgb565, origin + p.bufferRgb565_pos));
304304
// Transfer tile alternative:
@@ -325,13 +325,13 @@ modm::ResumableResult<void>
325325
modm::Ili9341<Interface, Reset, RB>::drawFlash(modm::accessor::Flash<uint8_t> data,
326326
uint16_t width, uint16_t height, shape::Point origin) {
327327
RF_BEGIN();
328-
328+
329329
(void)data;
330330
(void)width;
331331
(void)height;
332-
(void)origin;
332+
(void)origin;
333333

334-
RF_END();
334+
RF_END();
335335
}
336336

337337
// ---------------------------------------------------------------------------
@@ -369,7 +369,7 @@ modm::ResumableResult<void>
369369
modm::Ili9341<Interface, Reset, RB>::drawFast(Area area)
370370
{
371371
RF_BEGIN();
372-
372+
373373
p.write_pixels = area.getPixels();
374374
RF_CALL(setClipping(area));
375375

src/modm/driver/display/ili9341_interface_spi.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Ili9341InterfaceSpi : public ili9341_register, public modm::SpiDevice< Spi
138138
readData(Command command)
139139
{
140140
RF_BEGIN();
141-
141+
142142
RF_WAIT_UNTIL(this->acquireMaster());
143143
Cs::reset();
144144

@@ -147,7 +147,7 @@ class Ili9341InterfaceSpi : public ili9341_register, public modm::SpiDevice< Spi
147147
Dc::set();
148148

149149
read = RF_CALL(SpiMaster::transfer(0x00)).getResult();
150-
150+
151151
if (this->releaseMaster())
152152
Cs::set();
153153

src/modm/driver/display/ili9341_register.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct ili9341_register
2929
{
3030
Nop = 0x00,
3131
SwReset = 0x01,
32-
32+
3333
GammaSet = 0x26,
3434
ColumnAddressSet = 0x2A,
3535
PageAddressSet = 0x2B,
@@ -39,7 +39,7 @@ struct ili9341_register
3939

4040
PartialMode = 0x12,
4141
NormalMode = 0x13,
42-
42+
4343
PartialArea = 0x30,
4444
VerticalScrollDefinition = 0x33,
4545
MemoryAccessCtrl = 0x36,
@@ -50,7 +50,7 @@ struct ili9341_register
5050
ReadMemoryContinue = 0x3E,
5151
SetTearScanLine = 0x44,
5252
GetScanLine = 0x45,
53-
53+
5454
// Extended
5555
RgbInterfaceSignalCtrl = 0xB0,
5656
FrameCtrlNormalMode = 0xB1,
@@ -90,7 +90,7 @@ struct ili9341_register
9090
enum class ReadCommand : uint8_t {
9191
// TODO got 0s only for each of ReadId*
9292
Id = 0x04, // returns 4 bytes
93-
Id1 = 0xDA,
93+
Id1 = 0xDA,
9494
Id2 = 0xDB,
9595
Id3 = 0xDC,
9696
Id4 = 0xD3,

src/modm/driver/display/ssd1306.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class Ssd1306 : public ssd1306,
159159
/* pos.y rounds to multiples of 8
160160
* Arbitrary pos.y must be concidered whilst drawing into buffer
161161
*/
162-
162+
163163
// Write monochrome Buffer - uses {0, 0} as position
164164
template <typename R_>
165165
modm::ResumableResult<bool>
@@ -172,7 +172,7 @@ class Ssd1306 : public ssd1306,
172172

173173
protected:
174174
shape::Point bottom_right;
175-
175+
176176
virtual modm::ResumableResult<bool>
177177
setClipping(shape::Area area);
178178

src/modm/driver/display/ssd1306_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ modm::Ssd1306<I2cMaster, H>::writeBuffer(Buffer<bool, R_> &buffer)
196196
{
197197
// TODO substitute static_assert with concept, so this implementation would be omitted
198198
static_assert(R_::W <= 128, "Buffer to wide to be written fast. Use writeBuffer(buffer, {0, 0} instead)");
199-
199+
200200
RF_BEGIN();
201201

202202
static constexpr uint16_t Wclip = R_::W <= 128 ? R_::W : 128;

src/modm/ui/graphic/buffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Buffer : public ShapePainter<R, false>, public TextPainter<R>
103103
void
104104
writeBuffer(const Buffer<bool, R_> &other,
105105
shape::Point origin = {0, 0});
106-
106+
107107
void
108108
drawFlash(modm::accessor::Flash<uint8_t> data, uint16_t width, uint16_t height,
109109
shape::Point origin) final;
@@ -121,7 +121,7 @@ class Buffer : public ShapePainter<R, false>, public TextPainter<R>
121121
void drawFast(HLine hline) final;
122122
void drawFast(VLine vline) final;
123123
void drawFast(Area area) final;
124-
124+
125125
private:
126126
template<typename C_>
127127
void

src/modm/ui/graphic/buffer_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ modm::Buffer<C, R>::writeBuffer(
8989

9090
Point scanner = intersection.topLeft;
9191
size_t x_other = otherTopLeft.x;
92-
92+
9393
while (scanner.x < intersection.bottomRight.x)
9494
{
9595
uint8_t bit = bit_top;

src/modm/ui/graphic/canvas.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Canvas
8181
origin.y < 0 ? -origin.y : 0
8282
};
8383
}
84-
84+
8585
protected:
8686
bool
8787
xInCanvas(int16_t x) const

src/modm/ui/graphic/display.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ enum Orientation : uint8_t
3636

3737
/**
3838
* Baseclass for Graphic Display
39-
*
39+
*
4040
* @tparam C Resolution: Pixel-color. Pass one of modm::ui::color::* or bool for a monochrome buffer
4141
* @tparam R Resolution: Pixel-count in horizontal and vertical direction
4242
*

src/modm/ui/graphic/painter_flash.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace modm
2020

2121
/**
2222
* Painter for Images stored in flash-memory
23-
*
23+
*
2424
* @tparam RF true: Resumable Functions, false: Normal functions
2525
*
2626
* @author Thomas Sommer

0 commit comments

Comments
 (0)