Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: pkg/stm32f746g_disco/lib/lcd.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library stm32f746g.lcd; 5 library stm32f746g.lcd;
6 6
7 import 'dart:fletch.ffi'; 7 import 'dart:dartino.ffi';
8 8
9 final _lcdHeight = ForeignLibrary.main.lookup('lcd_height'); 9 final _lcdHeight = ForeignLibrary.main.lookup('lcd_height');
10 final _lcdWidth = ForeignLibrary.main.lookup('lcd_width'); 10 final _lcdWidth = ForeignLibrary.main.lookup('lcd_width');
11 final _lcdClear = ForeignLibrary.main.lookup('lcd_clear'); 11 final _lcdClear = ForeignLibrary.main.lookup('lcd_clear');
12 final _lcdDrawLine = ForeignLibrary.main.lookup('lcd_draw_line'); 12 final _lcdDrawLine = ForeignLibrary.main.lookup('lcd_draw_line');
13 final _lcdSetForegroundColor = 13 final _lcdSetForegroundColor =
14 ForeignLibrary.main.lookup('lcd_set_foreground_color'); 14 ForeignLibrary.main.lookup('lcd_set_foreground_color');
15 final _lcdSetBackgroundColor = 15 final _lcdSetBackgroundColor =
16 ForeignLibrary.main.lookup('lcd_set_background_color'); 16 ForeignLibrary.main.lookup('lcd_set_background_color');
17 final _lcdDisplayString = 17 final _lcdDisplayString =
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 _lcdSetForegroundColor.icall$1(color.rgb8888); 80 _lcdSetForegroundColor.icall$1(color.rgb8888);
81 _lcdDrawLine.icall$4(x1, y1, x2, y2); 81 _lcdDrawLine.icall$4(x1, y1, x2, y2);
82 } 82 }
83 83
84 void writeText(int x, int y, String text) { 84 void writeText(int x, int y, String text) {
85 var m = new ForeignMemory.fromStringAsUTF8(text); 85 var m = new ForeignMemory.fromStringAsUTF8(text);
86 _lcdDisplayString.icall$3(x, y, m); 86 _lcdDisplayString.icall$3(x, y, m);
87 m.free(); 87 m.free();
88 } 88 }
89 } 89 }
OLDNEW
« no previous file with comments | « pkg/stm32f746g_disco/lib/gpio.dart ('k') | pkg/stm32f746g_disco/lib/src/stm32f7_peripherals.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698