Skip to content
Snippets Groups Projects
Select Git revision
  • a76880e9c331804e359f80e10cffac64faaba068
  • master default protected
  • rahix/bme680-refactor
  • genofire/ble-follow-py
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • genofire/haule-ble-fs-deactive
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • koalo/factory-reset
  • msgctl/gfx_rle
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
34 results

display.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    main.c 580 B
    #include <stdio.h>
    #include <stdint.h>
    #include <string.h>
    
    #include "card10.h"
    #include "tmr_utils.h"
    #include "api.h"
    
    int main(void)
    {
    	int count       = 0;
    	led_color_t red = { 0x10, 0, 0 };
    
    	card10_init();
    	card10_diag();
    
    	printf("API Test.\n");
    	printf("core0: Starting dispatcher on core1\n");
    	core1_start();
    	TMR_Delay(MXC_TMR0, MSEC(100), 0);
    
    	api_set_buzzer(1);
    	TMR_Delay(MXC_TMR0, MSEC(300), 0);
    	api_set_buzzer(0);
    	api_set_led(5, red);
    	api_test(0xAB, 0x7DEF, 0x01, 0x02);
    
    	while (1) {
    		printf("count = %d\n", count++);
    
    		TMR_Delay(MXC_TMR0, SEC(1), 0);
    	}
    }