mirror of
https://github.com/stasenso/rp_pico_test.git
synced 2026-06-26 21:42:44 +03:00
21 lines
726 B
C
21 lines
726 B
C
#ifndef __BACKBUFFER_H__
|
|
#define __BACKBUFFER_H__
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#define WIDTH 320
|
|
#define HEIGHT 240
|
|
#define COLOR_BLACK 0x0000
|
|
#define COLOR_WHITE 0xFFFF
|
|
|
|
extern uint16_t frame_buffer[WIDTH * HEIGHT];
|
|
extern float humidity, temperature;
|
|
|
|
float bernstein(int i, int n, float t);
|
|
void draw_bezier(const int *points_x, const int *points_y, size_t num_points, uint16_t color);
|
|
unsigned short reverse(unsigned short x);
|
|
void set_pixel(uint16_t x, uint16_t y, uint16_t color);
|
|
void generate_sine_wave_points(uint16_t num_points, int amplitude, float frequency, int offset_x, int offset_y, float phase_shift);
|
|
void grid (uint16_t x, uint16_t y, uint16_t step, uint16_t color);
|
|
#endif // __BACKBUFFER_H__
|