/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/text_renderer.h

  • Committer: Tim Marston
  • Date: 2012-04-29 15:26:03 UTC
  • Revision ID: tim@ed.am-20120429152603-yoj8oi7wlzb0qwnx
added a 5V power regulator to schematic (since the one on our arduino was crap)

Show diffs side-by-side

added added

removed removed

34
34
{
35
35
 
36
36
        /**
 
37
         * Initialise.
 
38
         */
 
39
        void init();
 
40
 
 
41
        /**
37
42
         * Get the width, in pexels, of a message.
38
43
         *
39
44
         * @param message_len the length of the message
44
49
         * Draw a column of pixels at pixel-offset x in the message.
45
50
         *
46
51
         * @param message the message
47
 
         * @param message_len the length of the message (to save it being calculated)
 
52
         * @param message_len the length of the message (to save it being
 
53
         *              calculated)
48
54
         * @param x the pixel column of the message to draw
49
55
         * @param y_flip true to draw up-side down
50
56
         * @param y_shift shift the drawing up/down
57
63
         */
58
64
        void reset_buffer();
59
65
 
 
66
 
 
67
        /**
 
68
         * Notify renderer that the output buffer will require rendering.
 
69
         */
 
70
        void buffer_in_use();
 
71
 
 
72
 
60
73
        /**
61
74
         * Output the output buffer (and reset the output buffer).
62
75
         */
63
76
        void output_buffer();
64
77
 
65
78
        /**
66
 
         * Set the font number to use
 
79
         * Get the font number in use.
67
80
         *
68
 
         * @param font_num font number
69
 
         */
70
 
        void select_font( int font_num );
 
81
         * @return font number
 
82
         */
 
83
        int get_font();
 
84
 
 
85
        /**
 
86
         * Switch to the next font.
 
87
         */
 
88
        void inc_font();
71
89
 
72
90
};
73
91