Example Configuration Used in this Application

The following sequence is a basic example to animate the user style1 using ABM mode in Segment LCD1 Xplained Pro LCD glass.

Buffers used :

/* DMA buffer length */
#define BUFFER_LEN 30

/* DMA resource and descriptor */
struct dma_resource example_resource;

COMPILER_ALIGNED(16)
DmacDescriptor example_descriptor;

static char user_scrolling_str[BUFFER_LEN] = {"HELLO WORLD     "};
static volatile uint32_t dma_source_buf[BUFFER_LEN];

static volatile bool transfer_is_done = false;
static volatile uint32_t dma_break = 0, dma_block_count = 0;

/** prints Atmel in user style1 */
user_style_buf[1][30] = {
0x00000040,0x00070000,0x000D0060,0x00140002, // S
0x000600e0,0x000D0060,0x00130008,0x00020004, // T
0x000C0070,0x00130008,0x00020004,0x0008000a, // Y 
0x00120000,0x00010005,0x0008002a,0x000E0003, // L 
0x00010085,0x00070070,0x000E0023,0x00140022, // E 
0x0000FF00,0x0000FF00,0x0000FF00,0x0000FF00  // 1  
}